some personal rambling on java the lang

G

George Neuner

AFAIHS, C has the smallest bootstrap. The only things absolutely
*required* are to define the stack limits, set the stack (and maybe
frame) pointer and (if necessary) jump to the application entry point.
Total required code - less than 10 assembly instructions.

Optionally, if the application requires dynamic allocation[*] then you
must define the location and limit of the heap and initialize the
allocator. Less than 10 additional instructions.

That's it ... your C application is up and running.

George
[*] Some of C's standard library functions normally use dynamic
allocation, but those troublesome functions can be avoided or replaced
with versions that use static buffers. The "added-value" of a
commercial embedded development system (vs, e.g., trying to use a free
compiler) is that the commercial runtime library typically will
include static buffered versions of functions that normally allocate
and also will provide a selection of dynamic allocators optimized for
different purposes.
 
P

Pascal J. Bourguignon

George Neuner said:
That's it ... your C application is up and running.

And if your C application is, a CL implementation, then you Lisp
application is up and running too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top