Transplant a C compiler???

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
yaocong
Posts: 22
Joined: Fri Sep 09, 2005 11:00 pm
Location: China
Contact:

Transplant a C compiler???

Post 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.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Transplant a C compiler???

Post 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
yaocong
Posts: 22
Joined: Fri Sep 09, 2005 11:00 pm
Location: China
Contact:

Re: Transplant a C compiler???

Post by yaocong »

GCC?
I really don't know where to download it!!!
^-^
I like the Dream of the Red Chamber.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Transplant a C compiler???

Post 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
yaocong
Posts: 22
Joined: Fri Sep 09, 2005 11:00 pm
Location: China
Contact:

Re: Transplant a C compiler???

Post by yaocong »

Thank you very much!
I like the Dream of the Red Chamber.
Post Reply