Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 25th, 2005, 5:31 AM   #1
jonyzz
Programmer
 
jonyzz's Avatar
 
Join Date: Aug 2005
Location: null
Posts: 40
Rep Power: 0 jonyzz is on a distinguished road
Cool What is Native code ?

I googled this - define: native code, so there were two results:

- Native code refers to programs that are written in another language other than Java, such as assembler or C++.

- A system of codes directly understandable by a computer's CPU is termed this CPU's native or machine language.

So what do you think ? How should I understand it ? Is it the assembler, the machine language, the environment language ... ?
jonyzz is offline   Reply With Quote
Old Oct 25th, 2005, 5:52 AM   #2
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
Quote:
Native code refers to programs that are written in another language other than Java, such as assembler or C++.
Not the programs themselves, but the Object Code generated from assembler or C++ programs.
__________________
PFO - My daily dose of technology.
InfoGeek is offline   Reply With Quote
Old Oct 25th, 2005, 7:36 AM   #3
Simon Gray
Programmer
 
Join Date: Aug 2005
Location: Ålsgårde, Denmark
Posts: 62
Rep Power: 4 Simon Gray is on a distinguished road
Send a message via MSN to Simon Gray
^ or other programming languages but that is the correct definition.

Another definition for native code (which should only be even more confusing) is code that is compiled for and is running on a specified platform, then it's native. To elaborate: It's possible to run some Windows programs on Linux using Wine for example, but the "code" is not native, it calls a fictive Windows API which Wine is the placeholder for.
__________________
Visit my blog, about all that stuff in between your nostrils >_>
Simon Gray is offline   Reply With Quote
Old Oct 25th, 2005, 7:48 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I don't know where you got the first definition, but you shouldn't go back there.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 25th, 2005, 9:57 AM   #5
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
Native code = machine language

For example, the opcodes (seen as numbers) in Intel 386 code.
jim mcnamara is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC