C++ KERNEL

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
codemastersnake
Member
Member
Posts: 148
Joined: Sun Nov 07, 2004 12:00 am
Contact:

C++ KERNEL

Post 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..
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: C++ KERNEL

Post by Legend »

Where did you get it?
And don't you think understanding something is necessary to correctly use it?
*post*
User avatar
codemastersnake
Member
Member
Posts: 148
Joined: Sun Nov 07, 2004 12:00 am
Contact:

Re: C++ KERNEL

Post by codemastersnake »

Cumm'on I do tried to understand it.... just wanted to know more! that's it!
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: C++ KERNEL

Post 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
User avatar
gaf
Member
Member
Posts: 349
Joined: Thu Oct 21, 2004 11:00 pm
Location: Munich, Germany

Re: C++ KERNEL

Post 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
Post Reply