Why not use Sphinx C ?

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
Anon

Why not use Sphinx C ?

Post by Anon »

I just found out about a mod of a C compiler,
sphinx - C. It's a C compiler Cross with an asm one.
I don't see you guys talk about it much, is Sphinx C not
the ideal OS compiler ?
You can work directly with registers too.
J. Weeks

RE:Why not use Sphinx C ?

Post by J. Weeks »

>On 2002-04-26 00:37:48, Anon wrote:
>I just found out about a mod of a C compiler,
>sphinx - C. It's a C compiler Cross with an asm one.
>I don't see you guys talk about it much, is Sphinx C not
>the ideal OS compiler ?
>You can work directly with registers too.

I've thought about it, myself. Indeed, I think I have
a version of Sphinx C-- on my 'doze system. I use
GCC, however, simply because it's more widely accepted,
compiles tight 32-bit code, and supports ELF and
COFF (through djgpp) formats.

I don't see any reason why you couldn't use Sphinx
C-- to build an OS, assuming you can get the
compiler to compile/assemble large programs into
formats other than .exe and .com

Jeff
Khumba

RE:Why not use Sphinx C ?

Post by Khumba »

Why wouldn't .COM work? You'd still have to write
a bootloader in NASM or something, but doesn't it
generate 16-bit code?

>On 2002-04-27 20:49:37, J. Weeks wrote:
>>On 2002-04-26 00:37:48, Anon wrote:
>>I just found out about a mod of a C compiler,
>>sphinx - C. It's a C compiler Cross with an asm one.
>>I don't see you guys talk about it much, is Sphinx C not
>>the ideal OS compiler ?
>>You can work directly with registers too.
>
>I've thought about it, myself. Indeed, I think I have
>a version of Sphinx C-- on my 'doze system. I use
>GCC, however, simply because it's more widely accepted,
>compiles tight 32-bit code, and supports ELF and
>COFF (through djgpp) formats.
>
>I don't see any reason why you couldn't use Sphinx
>C-- to build an OS, assuming you can get the
>compiler to compile/assemble large programs into
>formats other than .exe and .com
>
>Jeff
Post Reply