OT: Objective-C Compiler?
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