• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OT: Objective-C Compiler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT: Objective-C Compiler?


  • Subject: OT: Objective-C Compiler?
  • From: "Joe Graham" <email@hidden>
  • Date: Sun, 11 Nov 2001 12:11:16 -0700

Sorry this is probably a little off topic. It is my understanding that the
objective-C compiler is actually a preprocessor and not a compiler. It is
my understanding that it actually generates "C" code and invokes gcc. So
what is the underlying design of a preprocessor and what tools are used to
create them? I understand the basics of compilers and have used tools like
lex and yacc for lexical and syntax analysis. What are the interfaces
avaible to gcc for subsequent compiler invocation.
Example: Suppose I write an executable named "mycompiler" and "mycompiler"
generates C code then invokes gcc. What is the proper way to approach this?
Finally, is there any good documentation on writing preprocessors?

Thank you and I'll also cross post this to the obj-c google group.

Cheers,
Joe Graham


  • Follow-Ups:
    • Re: Objective-C Compiler?
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: Re: AltiVec on OSX in Cocoa
  • Next by Date: Re: Objective-C Compiler?
  • Previous by thread: Re: gcc 3.0.x
  • Next by thread: Re: Objective-C Compiler?
  • Index(es):
    • Date
    • Thread