Re: Compiler,Translator,Interpeter,Binder?
- Posted by Jason Gade <jaygade at yahoo.com> Dec 21, 2004
- 514 views
don cole wrote: > > > Could somebody please define compiler ,translator and intepeter and binder? > > Like Compiler=Translates source code into binary code (I think) > Example:Bind.bat(I > think). > I thought I understood all this but after reading the "Wayyy to slow" thread > I am thoughly confused. > > don cole > SF > Compiler - translates source code into machine code that can run directly on the processor. Translator - an RDS product now included with 2.5 alpha that can translate your Euphoria source code into C source code. A C compiler translates the C source code into machine code that can be executed. The reason for a translator instead of a program that directly compiles Euphoria into machine code is that it leverages all the optimization work that C compiler writers put into their programs so RDS doesn't have to. Binder - an RDS product that 'binds' your Euphoria source code to the interpreter executable. This is a little more complicated to understand. Your Euphoria source is converted into bytecode that the interpreter understands and bundles it with the interpreter executable into one file. The binder creates an exe file. The translator creates C source files that you must then compile to get an exe file. The compiler itself is not provided by RDS. Is all that clear? ;^) ===================================== Too many freaks, not enough circuses. j.