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 2,674 of 2,753    |
|    marblypup@yahoo.co.uk to All    |
|    Re: another C-like language? was Compile    |
|    07 Jan 23 02:14:51    |
   
   From: marb...@yahoo.co.uk   
      
   > [If you're doing a one-pass compiler, it's easier if all the declarations   
   are at the   
   > beginning so you can generate the code to set up the stack frame and do   
   initializations.   
   > I agree that on modern computers it's not a big deal, but remember that   
   early C compilers   
   > ran in 24K bytes and I don't mean meagabytes. -John]   
      
   Presumably such a compiler would have to create 2 stack frames for   
   `char *foo="foo"; puts(foo); { char *bar="bar"; puts(bar); }`   
   [In a mutant version of C with nested scopes, I suppose so, but when C   
   compilers   
   ran in 24K bytes, it didn't. -John]   
      
   --- 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