LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2009, 01:26 AM   #1
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Simple GCC question


the very very simple question that anybody but me could
figure out is can GNU CC make 16 bit code?
 
Old 10-04-2009, 02:26 AM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
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
 
Old 10-04-2009, 02:28 AM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
how do i setup a cross compiler for the 16 bit architechure
in windows or linux?
 
Old 10-04-2009, 02:31 AM   #4
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by smeezekitty View Post
how do i setup a cross compiler for the 16 bit architechure
in windows or linux?
Google! gcc 16-bit
 
Old 10-04-2009, 02:33 AM   #5
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
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
 
Old 10-04-2009, 02:41 AM   #6
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Just for my info, what's the target processor
8088 as in the kind from the 80's no 32 bit codde here
 
Old 10-04-2009, 02:51 AM   #7
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple GCC question. Jason21 Programming 5 08-26-2007 05:43 AM
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
simple gcc question davidleroux1 Programming 1 07-26-2005 10:46 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration