home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,494 of 2,753   
   Marco van de Voort to Alex Colvin   
   Re: compiling C++ to C, was writing a co   
   04 Nov 08 14:35:28   
   
   From: marcov@stack.nl   
      
   On 2008-11-03, Alex Colvin  wrote:   
   >>Tony said, "From what I've read, it seems that CFront couldn't implement   
   >>the whole language."   
   >   
   >>I said I thought it could, at least theoretically, although modern   
   >>compilers which implement the current standard all compile to machine code.   
   >   
   > Runtime and linker features such as exceptions and template instantiation   
   > would be very difficult to generate in C.   
      
   Templates are no problem, the C++ compiler instantiates them, and writes   
   them out in C code.   
      
   Exceptions are harder. Sure, it is doable in C, but would the resulting,   
   stack unwinding C be portable to a different compiler (IOW free of (ab)use of   
   specific ABI knowledge )?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca