Page 1 of 1
Transplant a C compiler???
Posted: Fri Sep 09, 2005 11:00 pm
by yaocong
HI,guys.
Could anybody tell me which C compiler is easy to transpant to another type of OS(especially your own OS)?
I am writting an OS,and achieve some success,I want to transplant a C compiler to it. My OS is written in Borland C .
Thanks.
Re: Transplant a C compiler???
Posted: Fri Sep 09, 2005 11:00 pm
by earlz
well exactly why do you need to port a compiler
if its to build applications or make kernel development easier than probably what you are wanting to do is port the C libraries not neccesarily a C compiler
but if your os is off good and you got some what of a developed api then probably gcc would be the easiest to port since its (1)gpl open source and (2) it is written with very portable code designed ot be cross platform
Re: Transplant a C compiler???
Posted: Fri Sep 09, 2005 11:00 pm
by yaocong
GCC?
I really don't know where to download it!!!
^-^
Re: Transplant a C compiler???
Posted: Fri Sep 09, 2005 11:00 pm
by earlz
if you are using unix or linux or anything other than windows/dos google for gcc download
if you are using dos or windows google for djgpp download
djgpp is a bit of a pain to setup i reccommend going to osdever.net then to the download section, then look for djgpp, you probably wont need c++ support but if you want it then take it, and i dont think you need the bin utils but they might come in handy
Re: Transplant a C compiler???
Posted: Sat Sep 10, 2005 11:00 pm
by yaocong
Thank you very much!