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,492 of 2,753   
   Marco van de Voort to Louis Krupp   
   Re: Writing a compiler   
   02 Nov 08 16:34:44   
   
   From: marcov@stack.nl   
      
   On 2008-11-01, Louis Krupp  wrote:   
   >> [cfront was a prototype, and it's a miracle it worked as well as it did.   
   >> If you want to see generated code, either get the Comeau compiler, or look   
   >> at the assembler output from something like GCC. -John]   
   >   
   > Look up "name mangling."  It's as ugly as it sounds, but as far as I   
   > know, it's how all C++ compilers manage scoping and overloading.   
   >   
   > I see no reason why cfront couldn't implement all of C++;   
   > theoretically, there's no difference between generating C or assembler   
   > code.   
      
   This is not true if e.g. all chars that can be used in C identifiers are   
   also valid chars in C++. In assembler, usually a lot more special chars ($,@   
   often) can be used to separate the parts in a mangled name.   
      
   --- 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