Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Additions to C

Name: Anonymous 2009-11-10 4:15

What do you want in the next C standard? For me it's namespaces, damn they make libraries simple.

Name: Anonymous 2009-11-11 19:12

>>94
I'm not so sure about how to go about it in GCC, but in MS C compiler, you just pass /ENTRY:symbol_name to the linker(link), you can also pass /NODEFAULTLIB (to not link libc if you don't need it) and /ALIGN:# to change alignment. It should be noted though, that if you code in C and use the standard library, you will need to link against it(statically or dynamically). As for the entrypoint, you will no longer have main receive the usual parameters, instead you will probably have no params passed to you at all, in which case, you would have to obtain and parse the command line yourself if you need anything from it (along with whatever other things you may want). This all goes into platform specific code (different on windows and *nix'es), as for the exports you mention, msvcrt.dll stuff sounds like main() code, and it should go away if you set your own entrypoint, as well as the kernel32 code. SetUnhandledExceptionFilter was probably used for giving you a better error message than a simple crash of your application.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List