Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 44253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:37:23+00:00 2026-05-10T15:37:23+00:00

When using vxWorks as a development platform, we can’t write our application with the

  • 0

When using vxWorks as a development platform, we can’t write our application with the standard main() function. Why can’t we have a main function?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:37:24+00:00Added an answer on May 10, 2026 at 3:37 pm

    Before the 6.0 version VxWorks only supported kernel execution environment for tasks and did not support processes, which is the traditional application execution environment on OS like Unix or Windows. Tasks have an entry point which is the address of the code to execute as a task. This address corresponds to a C or assembly function. It can be a symbol named ‘main’ but there are C/C++ language assumptions about the main() function that are not supported in the kernel environment (in particular the traditional handling of the argc and argv parameters). Furthermore, prior to VxWorks 6.0, all tasks execute kernel code. You can picture the kernel as a common repository of code all linked together and then you’ll see that you cannot have several symbols of the same name (‘main’) since this would create name collisions.

    Now this is accurate only if you link your application code to the kernel image. If you were to download your application code then the module loader will accept to load several modules each with a main() routine. However the last ‘main’ symbol registered in the system symbol table is the only one you can access via the target shell. If you want to start tasks executing the code of one of the first loaded modules you’d have to use the addresses of the previous main() function. This is possible but not convenient. It is far more practical to give different names to the entry points of tasks (may be like ‘xxxStart’ where ‘xxx’ is a name meaningful for what the task is supposed to do).

    Starting with VxWorks 6.0 the OS supports a process environment. This means, among many other things, that you can have a traditional main() routine and that its argc and argv parameters are properly handled, and that the application code is executing in a context (user context) which is different from the kernel context, thus ensuring the isolation between application code (which can be flaky) and kernel code (which is not supposed to be flaky). PAD

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer I assume that you want to be able to have… May 11, 2026 at 2:03 pm
  • added an answer Warning: This answer is old. Still very useful, but live… May 11, 2026 at 2:03 pm
  • added an answer I don't think you can DataBind the id, so I'd… May 11, 2026 at 2:03 pm

Related Questions

When using vxWorks as a development platform, we can't write our application with the
When using jQuery 's ajax method to submit form data, what is the best
When using divs when is it best to use a class vs id ?
When using a DataReader object to access data from a database (such as SQL
When using Resharper to encapsulate a class's properties, is there a way to get
A legacy embedded system is implemented using a cooperative multi-tasking scheduler. The system essentially

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.