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..
C++ KERNEL
- codemastersnake
- Member
- Posts: 148
- Joined: Sun Nov 07, 2004 12:00 am
- Contact:
Re: C++ KERNEL
Where did you get it?
And don't you think understanding something is necessary to correctly use it?
And don't you think understanding something is necessary to correctly use it?
*post*
- codemastersnake
- Member
- Posts: 148
- Joined: Sun Nov 07, 2004 12:00 am
- Contact:
Re: C++ KERNEL
Cumm'on I do tried to understand it.... just wanted to know more! that's it!
Re: C++ KERNEL
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
but really you should completely understand every line of code in your kernel
Re: C++ KERNEL
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
"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