LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Simple GCC question (https://www.linuxquestions.org/questions/programming-9/simple-gcc-question-759533/)

smeezekitty 10-04-2009 01:26 AM

Simple GCC question
 
the very very simple question that anybody but me could
figure out is can GNU CC make 16 bit code?

ta0kira 10-04-2009 02:26 AM

Does your compiler's target processor support 16-bit code? If it does, it should either be default or there should be a gcc flag specific to the target. If not, you'll probably need a cross-compiler.
Kevin Barry

smeezekitty 10-04-2009 02:28 AM

how do i setup a cross compiler for the 16 bit architechure
in windows or linux?

lutusp 10-04-2009 02:31 AM

Quote:

Originally Posted by smeezekitty (Post 3706871)
how do i setup a cross compiler for the 16 bit architechure
in windows or linux?

Google! gcc 16-bit

ta0kira 10-04-2009 02:33 AM

Creating a cross-compiler is something I never actually succeeded at. It can be done with gcc in Linux, but it's not an easy thing to do. CLFS has instructions for creating a cross-compiler, which might be of help. As far as I know, you'll at least need kernel headers for your target processor to compile a cross-libc, which is incidentally required. Your other alternative (a much simpler one) is to find a C compiler for your target architecture. Just for my info, what's the target processor?
Kevin Barry

smeezekitty 10-04-2009 02:41 AM

Quote:

Just for my info, what's the target processor
8088 :) as in the kind from the 80's no 32 bit codde here

ta0kira 10-04-2009 02:51 AM

There must be an existing cross-compiler for that. You just need to find one that works with your development machine.
Kevin Barry


All times are GMT -5. The time now is 12:35 PM.