Hello all,
How can i write a c or c++ program without any runtime library at all.My basic requirement is i will write all the functions myself and the compiler should only produce the code that my source code says.I will not use any function from the runtime library and i will not even include any header.If it could be done using command line swicthes then please let me know about it.I prefer C Compiler.
I would like to make a boot loader like program using either C or C++.With a little or no ASM
1.Which compiler the BIOS making people use.Do they code only in ASM ?.I assume they use both. 2.What compiler the Single board microprocessor trainer people use ?. 3.Is the simulator like Virtual PC).Like the one available for microcontrollers,like IARs,etc which has editor,compiler & simulator all built in. 4.Where can i get the latest Standard call info which is supported by all processors.Who is standardizing the code.
Thanks
Pak
How can i write a c or c++ program without any runtime library at all.<p>
Do not use any function from the run-time libraries.
It sounds simple, but it is a very, very daunting task. Depending on your architecture (which you didn't specify), even the use of "standard" datatypes (like int, long, float, double, etc) might require library calls. You would have to roll your functions for dealing with these data types, which can be extremely hard since C doesn't let you go close enough to the processor to do this efficiently (try adding two 16-bit values on an 8-bit architecture without being able to use the carry flag ...).