Page 1 of 1
C++ KERNEL
Posted: Thu Mar 16, 2006 12:00 am
by codemastersnake
I am developing a C++ kernel
I am using a file support.c which I think saves a list of constructors and desturctors....
I just wanna know why should I use this file and what does it do..
Re: C++ KERNEL
Posted: Fri Mar 17, 2006 12:00 am
by Legend
Where did you get it?
And don't you think understanding something is necessary to correctly use it?
Re: C++ KERNEL
Posted: Fri Mar 17, 2006 12:00 am
by codemastersnake
Cumm'on I do tried to understand it.... just wanted to know more! that's it!
Re: C++ KERNEL
Posted: Sat Mar 18, 2006 12:00 am
by earlz
hmmm well if you can't see a reason to use it and it works without it then don't use it
but really you should completely understand every line of code in your kernel
Re: C++ KERNEL
Posted: Sat Mar 18, 2006 12:00 am
by gaf
Hello,
"support.c" is a quite common name and, as you didn't include a link in your post, I'm not quite sure which file you actually mean. Nevertheless I searched google and came up with
this include file, which is part of a tutorial on how to write a C++ kernel. It executes all global object's constructors before main gets called to initialize the objects and executes their destructors as soon as main returns to clean up. You can find some in depth info about how it really works in the
wiki.
regards,
gaf