full C support

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.
simmy

full C support

Post by simmy »

how do i bring the kernel in the bare bones turorial to support all the c libraries?
reason

Re:full C support

Post by reason »

You will either have to basically write your own, since you can't include the c library in your kernel.
simmy

Re:full C support

Post by simmy »

is there some kind of program or pre setup boot loader that has c supprt already configured?
bluecode

Re:full C support

Post 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 ;)
simmy

Re:full C support

Post 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?
bluecode

Re:full C support

Post by bluecode »

Linux is not minimalistic. You get linux at kernel.org
simmy

Re:full C support

Post 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?
viral

Re:full C support

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

Re:full C support

Post by simmy »

will the first release of linux have support for c compiled programs?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:full C support

Post 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.
Every good solution is obvious once you've found it.
simmy

Re:full C support

Post 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.
Kemp

Re:full C support

Post 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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:full C support

Post 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...
Every good solution is obvious once you've found it.
simmy

Re:full C support

Post 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.
Pyr0Mathic

Re:full C support

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