Re: Can all compiled languages be translated into assembly?



MSCHAEF.COM wrote:
In article <1142510345.885283.149330@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<thenightfly@xxxxxxxxxxx> wrote:

All code runs as machine code and assembly is just a simplified
extension of machine code, right? Doesn't that mean that any standard
compiled code can be directly translated into an assembly equivalent of
any hardware platform?

'any standard compiled code' and 'any hardware platform' are both sufficiently broad that the only safe answer is no.

Given that, if you have a particular piece of code running on a particular piece of hardware, then yes, there is likely to be a machine code equivalent. However, even that's not always true. Machines with seperate data and instruction address spaces preclude run time compilation to machine code. Such software will never be able to be fully translated to machine code run directly by the machine. (Unless you count whatever interpreter you use)

Code that is a "description language* cannot be *run*;)
.



Relevant Pages

  • Re: Can all compiled languages be translated into assembly?
    ... Doesn't that mean that any standard ... 'any standard compiled code' and 'any hardware platform' are both ... piece of hardware, then yes, there is likely to be a machine code ...
    (comp.programming)
  • Re: Can all compiled languages be translated into assembly?
    ... Doesn't that mean that any standard ... 'any standard compiled code' and 'any hardware platform' are both ... piece of hardware, then yes, there is likely to be a machine code ...
    (comp.programming)
  • Re: Can all compiled languages be translated into assembly?
    ... extension of machine code, right? ... Yes- high level code interprated into machine code. ... compiled code can be directly translated into an assembly equivalent of ...
    (comp.programming)
  • Re: Can all compiled languages be translated into assembly?
    ... compiled code can be directly translated into an assembly equivalent of ... any hardware platform? ... "/an/ assembly equivalent", hello, you should be talking about an /unlimited/ number of assembly equivalents, for ... you should be talking about any software in any possible dynamic state where the piece of code is executed -- and then there is the problem of infusing the machine code into that context. ...
    (comp.programming)
  • Can all compiled languages be translated into assembly?
    ... All code runs as machine code and assembly is just a simplified ... extension of machine code, right? ... Doesn't that mean that any standard ... compiled code can be directly translated into an assembly equivalent of ...
    (comp.programming)