Talk:How kernel, compiler, and C library work together: Difference between revisions

Content deleted Content added
Frank (talk | contribs)
Combuster (talk | contribs)
Line 3:
 
Actually in my kernel both _alloca and _main only have 1 underscore. But after a little research on the internet it seems that the number of underscores varies between platforms and file types. For example a.out has 2 and elf has 1. But then again the person that wrote this could have been thinking about how some C compilers prefix underscores to their functions. I don't know. I think that we should just pick one of them and make it consistent. --[[User:Frank|Frank]] 08:54, 3 July 2007 (CDT)
 
The text refers to PE binaries. So its either MinGW or MSVC that created the code. Still I doubt that either generates ''3'' underscores, although you never know with Microsoft. If its indeed compiler-dependent we should indeed pick a default (Not unlikely, as my ELF toolchain doesn't prefix underscores to main while yours does). Could someone post the MSVC variant for reference? - [[User:Combuster|Combuster]] 06:12, 5 July 2007 (CDT)
 
== Unformatted Text ==
Return to "How kernel, compiler, and C library work together" page.