www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/04/18:28:12

Date: Sat, 4 Feb 1995 14:04:41 +0900
From: Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
To: early AT finite DOT nrl DOT navy DOT mil, djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Making a C Compiler?

   >Can someone give me the big picture of what it takes to write a C
   >compiler for another processor other than the pc flavor?  I am
   >currently writing code for a microcontroller in assembler, and I
   >think that it would be neat to make a gcc for this 14 bit chip.
   >This would be a cross-compiler that runs on a pc to generate the
   >14 bit object code.

The big picture is that flat memory model is embedded everywhere in
the GCC suite.  If it's not flat memory (ie segment registers etc)
you're going to have big trouble.

I'm also afraid that 32-bit-ness is presumed throughout.  Ie, there is
not going to be a retargeting of the GCC compiler to build DOS
small-model programs, and probably not your processor either.  :-( 
This I don't know for sure (eg, there is GCC for Cray and Alpha
machines), but that's the first big hangup to worry about.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019