Page 1 of 2
full C support
Posted: Tue Jul 25, 2006 4:37 pm
by simmy
how do i bring the kernel in the bare bones turorial to support all the c libraries?
Re:full C support
Posted: Tue Jul 25, 2006 7:58 pm
by reason
You will either have to basically write your own, since you can't include the c library in your kernel.
Re:full C support
Posted: Tue Jul 25, 2006 8:24 pm
by simmy
is there some kind of program or pre setup boot loader that has c supprt already configured?
Re:full C support
Posted: Tue Jul 25, 2006 8:36 pm
by bluecode
The only thing I could think of is
OSLib. But honestly, do you want to write your own kernel or do you want to build some programms on top of an existing kernel. If the later one even Linux (and yes, the kernel _only_) might fit your needs. If the first one, then there is at first no way to get a full-fledged c library. You have to do the kernel first.
You also might want to take a look at Solar's project, the
Public domain c library. This library can be used in user and kernel land.
But perhaps you might also want to visit the
osfaq
Re:full C support
Posted: Tue Jul 25, 2006 8:44 pm
by simmy
for now, writing programs on a very minimalistic kernel, where there is c support would be sufficient. where could i find a simple linux kernel?
Re:full C support
Posted: Tue Jul 25, 2006 8:51 pm
by bluecode
Linux is not minimalistic. You get linux at
kernel.org
Re:full C support
Posted: Tue Jul 25, 2006 10:58 pm
by simmy
can one put the linux kernel on a floppy, then run a c program? is there enough space?
how does one accomplish this?
Re:full C support
Posted: Wed Jul 26, 2006 12:29 am
by viral
Hi...
You may try this version of Linux.. Its the first release and may serve your need.. Its near to your "minimalistic" requirement. Try to get it from download section of
www.osdever.net
Re:full C support
Posted: Wed Jul 26, 2006 10:56 pm
by simmy
will the first release of linux have support for c compiled programs?
Re:full C support
Posted: Wed Jul 26, 2006 11:09 pm
by Solar
::)
Simmy, what do you
want? If you want to write user-space C programs, what does it matter whether the kernel is "minimalistic"? Just use whatever OS you are running on.
If you want to hack around in kernel-space code, what does the support for user-space C code matter?
If you need to boot a C-supporting OS core from floppy, try one of the
floppy-bootable Linux distributions.
Re:full C support
Posted: Thu Jul 27, 2006 12:56 am
by simmy
ok yes, let me explain my intentions, as i have been asking such random questiosn in this forum for a while now...
my intentions are to make an OS geared toward fast math calculations.
My initial goal was to create the whole thing from scratch, but know that i am coming closer to my deadline (September 9th), i realized that was inpossible.
So i plan on using a bootable linux with (if possible) nothing but a structure that can load c compiled programs. And with this capability, i wish to load a shell ive been making to run and make it possible for the users to enter math equations and what not.
This is designed to lessen the amount of time needed to perform large math calculations by elimination a big fancy GUI.
So basically, this is a calculator put into a shell.
Re:full C support
Posted: Thu Jul 27, 2006 4:51 am
by Kemp
So i plan on using a bootable linux with (if possible) nothing but a structure that can load c compiled programs.
A compiled program is a compiled program whether it was written with C or not. I think your best bet here is to write a quick console app, no OS messing around required there.
Re:full C support
Posted: Thu Jul 27, 2006 10:12 am
by Solar
"An OS geared towards fast math calculations"?
What you describe sounds more like a command-line calculator - which would not have anything to do with an OS, and could actually be written in platform-independent C so it could be compiled for whatever platform the user desires...
Re:full C support
Posted: Thu Jul 27, 2006 11:12 am
by simmy
well the point was to have the calculator stand alone on its own platform to eliminate any wastage of space from the OS it is running on.
Re:full C support
Posted: Thu Jul 27, 2006 3:08 pm
by Pyr0Mathic
i am just wondering, but what kind of formula's are planning to calculate? since if you would simply use window's (yeah uses a lot of recources), and put your thread on Real-time, and disable virtual memory (so no memory is saved on disk, just the RAM is used), then your program would probely go on full speed, or almost full speed for that system (computer).
otherwise you could also write a device driver to calculate the stuf that would required to be calculated. Once being a device driver you can disable interupt's, So the only things which could interupt your driver would be SMI's. which could also be disabled, but that's a bit more tricky....
Regards
PyroMathic