Click here to Skip to main content
15,919,178 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: VB haters, look away Pin
User 101325462-Aug-17 23:09
User 101325462-Aug-17 23:09 
QuestionRe: VB haters, look away Pin
Kenworth713-Aug-17 0:27
professionalKenworth713-Aug-17 0:27 
AnswerRe: VB haters, look away Pin
kalberts3-Aug-17 1:41
kalberts3-Aug-17 1:41 
GeneralRe: VB haters, look away Pin
Member 98620823-Aug-17 3:45
Member 98620823-Aug-17 3:45 
GeneralRe: VB haters, look away Pin
Kenworth713-Aug-17 12:54
professionalKenworth713-Aug-17 12:54 
GeneralRe: VB haters, look away Pin
kalberts3-Aug-17 22:35
kalberts3-Aug-17 22:35 
GeneralRe: VB haters, look away Pin
Kenworth713-Aug-17 22:47
professionalKenworth713-Aug-17 22:47 
GeneralRe: VB haters, look away Pin
kalberts4-Aug-17 0:17
kalberts4-Aug-17 0:17 
If you are right, then terminology is changing.

In my book, the op-code is that field in the binary instruction code that indicates what is to be done: Add, shift, jump, ... Usually, the rest of the binary instruction code is operand specifications, such as memory addresses or constants.

In more high-level contexts I have seen "op-code" used for a field in a structure, e.g. a protocol. Again, the opcode tells what is to be done (at the level of "withdraw from bank account", "turn on" etc.), the other fields tells with what is it to be done.

You suggest a new interpretation, that an op-code is both the 'what to do' and the 'with what to do it'. Maybe that is an upcoming understanding, but certainly not the traditional one.

JVM bytecodes are certainly ready for execution, once you find a machine for it. It is easier to build a virtual machine, a simulator, than to build a silicon one. So that is what we do.

You can build a translator from MC68000 instructions to 386 instructions. Or from IBM 360 instructions to AMD64 instructions. Or from JVM instructions to VAX instructions. Suggesting that the intention of compiling to MC68K instructions was to serve as an intermediate step to 386 code would be crazy - that was never the intention of the MC68K instruction set. Similarly, the intention of Java bytecodes were not to be translated into another instruction set.

If you first compile to one instruction set (including bytecode, such as Java or Pascal P4 bytecode), and then translate to another instruction set, there is generally a loss of information, so that the final code is of poorer quality than if it had been compiled directly from the DAG, which usually contains a lot of info that is lost (i.e. used and then discarded) in the backend. Some of it may be recovered by extensive code analysis, but expect to loose a significant part, in the sense that you will not utilize the target CPU fully. Especially if the first/bytecode architecture has a different register philosophy (general? special?), interrupt system or I/O mechanisms. So, if at all possible, generate the target code from the intermedate level, not from some fully compiled instruction set.
GeneralRe: VB haters, look away Pin
Kenworth714-Aug-17 11:00
professionalKenworth714-Aug-17 11:00 
GeneralRe: VB haters, look away Pin
kalberts6-Aug-17 20:32
kalberts6-Aug-17 20:32 
GeneralRe: VB haters, look away Pin
Kenworth716-Aug-17 21:08
professionalKenworth716-Aug-17 21:08 
GeneralRe: VB haters, look away Pin
kalberts6-Aug-17 22:05
kalberts6-Aug-17 22:05 
GeneralRe: VB haters, look away Pin
Kenworth717-Aug-17 0:21
professionalKenworth717-Aug-17 0:21 
GeneralRe: VB haters, look away Pin
kalberts7-Aug-17 1:30
kalberts7-Aug-17 1:30 
GeneralRe: VB haters, look away Pin
jschell3-Aug-17 5:59
jschell3-Aug-17 5:59 
GeneralRe: VB haters, look away Pin
kalberts3-Aug-17 21:49
kalberts3-Aug-17 21:49 
GeneralRe: VB haters, look away Pin
jschell8-Aug-17 13:20
jschell8-Aug-17 13:20 
GeneralRe: VB haters, look away Pin
Member 108155734-Aug-17 2:55
Member 108155734-Aug-17 2:55 
GeneralRe: VB haters, look away Pin
User 101325464-Aug-17 4:21
User 101325464-Aug-17 4:21 
GeneralRe: VB haters, look away Pin
PIEBALDconsult2-Aug-17 4:55
mvePIEBALDconsult2-Aug-17 4:55 
GeneralRe: VB haters, look away Pin
User 101325462-Aug-17 4:58
User 101325462-Aug-17 4:58 
GeneralRe: VB haters, look away Pin
CodeWraith2-Aug-17 5:03
CodeWraith2-Aug-17 5:03 
GeneralRe: VB haters, look away Pin
jschell3-Aug-17 6:03
jschell3-Aug-17 6:03 
GeneralRe: VB haters, look away Pin
Peter Wone4-Aug-17 2:14
Peter Wone4-Aug-17 2:14 
GeneralRe: VB haters, look away Pin
Jeremy Falcon2-Aug-17 6:31
professionalJeremy Falcon2-Aug-17 6:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.