Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/04/04 14:57
Read: times


 
#71765 - Totally & Utterly Impossible!
Responding to: ???'s previous message
Sachin B.A said:
Say I have written a code,which I want to run on Intel as well as Motorola processor

You will have to compile it for the Intel chip using a Chip-specific compiler to generate code to run on the Intel chip.
You will also have to compile it for the Motorola chip using a Chip-specific compiler to generate code to run on the Motorola chip.

Thus you will need two separate compilers, and end up with two separate executables - one will run on the Intel chip only; the other will run on the Motorola chip only

You could use conditional-compilation to decide between the two; eg,
#if defined INTEL
// Intel-specific definitions
#elif defined MOTOROLA
// Motorola-specific definitions
#else
#error Unsupported chip!
#endif

It always pays to "encapsulate" your compiler-dependencies like this.


List of 23 messages in thread
TopicAuthorDate
Little Endian Big endian conversion.            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      
      RE: Little Endian Big endian conversion.            01/01/70 00:00      
         RE: Little Endian Big endian conversion.            01/01/70 00:00      
            RE: Little Endian Big endian conversion.            01/01/70 00:00      
               RE: Little Endian Big endian conversion.            01/01/70 00:00      
                  RE: Little Endian Big endian conversion.            01/01/70 00:00      
                     RE: Little Endian Big endian conversion.            01/01/70 00:00      
               RE: Little Endian Big endian conversion.            01/01/70 00:00      
               Totally & Utterly Impossible!            01/01/70 00:00      
         RE: Little Endian or Big endian?            01/01/70 00:00      
      RE: Little Endian Big endian conversion.            01/01/70 00:00      
         RE: Junk            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      
      RE: machine-independent            01/01/70 00:00      
      RE: Little Endian Big endian conversion.            01/01/70 00:00      
         RE: Compiler-dependence            01/01/70 00:00      
            RE: Compiler-dependence            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      
      RE: Little Endian Big endian conversion.            01/01/70 00:00      
   A Useful Link            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      

Back to Subject List