![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| main makefile | ideur | UNIX for Dummies Questions & Answers | 6 | 12-19-2007 04:56 AM |
| Main Resursive is it possible | krishna_sicsr | High Level Programming | 7 | 04-09-2007 08:13 AM |
| How to go to main prompt | amitra123 | HP-UX | 2 | 09-03-2004 01:38 PM |
| c++ calling main() function | norsk hedensk | High Level Programming | 3 | 01-22-2003 08:28 PM |
| How do I input an argument in the main? | yhosun | High Level Programming | 2 | 06-11-2002 09:22 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
after the entry pt of an exe it is the main function that is called first ( actually loaded into stack trace )
i am not sure of this, if you want some other function to execute first then you need to have your exe generator, with options to work at the entry pt level of any exe |
|
||||
|
The C standard says that a module called "_start" runs first, then calls main().
You can usually see it in the output from nm: Code:
_sr4export | 6968|extern|code |$CODE$ _start | |undef |code | _start | 6512|uext |stub | _tepv |1073746360|undef |common |$BSS$ Why you would want to do this... I don't know. |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|