full C support
full C support
how do i bring the kernel in the bare bones turorial to support all the c libraries?
Re:full C support
You will either have to basically write your own, since you can't include the c library in your kernel.
Re:full C support
is there some kind of program or pre setup boot loader that has c supprt already configured?
Re:full C support
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
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
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
can one put the linux kernel on a floppy, then run a c program? is there enough space?
how does one accomplish this?
how does one accomplish this?
Re:full C support
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
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
::)
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.
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.
Every good solution is obvious once you've found it.
Re:full C support
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.
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
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.So i plan on using a bootable linux with (if possible) nothing but a structure that can load c compiled programs.
Re:full C support
"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...
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...
Every good solution is obvious once you've found it.
Re:full C support
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
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
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