* gcc on non-POSIX os?
@ 2005-11-12 14:14 Marco Zanon
2005-11-13 4:59 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Marco Zanon @ 2005-11-12 14:14 UTC (permalink / raw)
To: gcc-help
Hi,
I would like to ask you what follows, please.
Would it be possible to port GCC to a non-POSIX operating system and
make it work?
Or: Suppose I created an operating system kernel. What would I have to
implement in order for gcc to run on top of it? Would a POSIX-compliant
libc be necessary?
Thank you very much,
--
Marco
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gcc on non-POSIX os?
2005-11-12 14:14 gcc on non-POSIX os? Marco Zanon
@ 2005-11-13 4:59 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2005-11-13 4:59 UTC (permalink / raw)
To: info; +Cc: gcc-help
Marco Zanon <info@marcozanon.com> writes:
> Would it be possible to port GCC to a non-POSIX operating system and
> make it work?
Sure. For example, gcc runs on MS-DOS.
> Or: Suppose I created an operating system kernel. What would I have to
> implement in order for gcc to run on top of it? Would a POSIX-compliant
> libc be necessary?
gcc is a complicated program, but in operating systems terms it is
pretty close to being a filter which reads one file and writes
another. It does not require much in the way of operating system
support. It does need most of the ISO C library (fopen, printf,
malloc, etc.). It also needs to be able to start another process, and
it needs to be able to read a directory. There may be a couple of
other things here and there.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-13 4:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-12 14:14 gcc on non-POSIX os? Marco Zanon
2005-11-13 4:59 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).