Hi every body :)

I?m a total newbie :lol: and I was wondering what dose NATIVE CODE means?

And also I would like to ask about something else, I read it somewhere that for example c/c++ are compiled languages while like VB for example they say it?s interpreted or compiled/interpreted what?s the difference?

What I?m trying to say is that, no matter what programming language we use, shouldn?t the code be translated or converted to machine language so that the pc can understand it!

Hope I made my question clear

Please excuse my English

Thx for your help
Posted on 2004-10-27 21:23:43 by TylerDurden
Native code is the instructions the processor understands directly. It is possible to create a program that translates another language into native code: some of these are called virtual machines (VM) and the code they execute is called byte code. Byte code can be represented by an intermediate language -- meaning a language typically generated by machine for the VM. The purpose is to create levels of abstraction providing features which would be more difficult to accomplish with native code.

With compiled code many abstraction layers are colapsed to produce native code at compile-time. This differs from the byte code because byte code is not converted to native code until runtime.
Posted on 2004-10-28 00:30:49 by bitRAKE
native code = machine language that runs on your development system.

You can produce machine language for one processor and run it under another by using a simulator (sometimes called an emulator). That is not native to the simulating processor, but native to the target processor.
Posted on 2004-10-28 22:13:27 by tenkey
thx guys for the info. :-D

still i need to know more...
where can i find doc. or white papers on the subject .. i mean doc. for a total newbie
thx again!!
Posted on 2004-11-01 23:20:12 by TylerDurden
Please, explain your goals to help narrow the advice?

Any book on begining compiler design (search the board/www).
Posted on 2004-11-02 00:12:48 by bitRAKE
thx bitRAKE :lol:
to tell u the truth im not sure of my goals yet since im still in the very beginings of my learning, but like i said i was reading, and the word "Native code" was there so my basic goal is to learn more about it, and as a starting point, ur reply was very informative....
so thx alot .. again
Posted on 2004-11-05 12:05:05 by TylerDurden
As far as I know, there is no white paper. I can't think of any other context other than compilers, where the term "native code" is used. A native-code compiler is simply a compiler that generates machine language for the system it runs on.

Example: You've got a C++ compiler that runs on your typical Pentium machine. If it generates Pentium code, it is a native-code compiler. If it generates code for another machine, such as a PowerPC-based Macintosh, it's a cross-compiler. If it generates code for a fake machine, it's a compiler that generates VM (virtual machine) code.
Posted on 2004-11-06 02:21:58 by tenkey