![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I make "touch" create executable files by manipulating umask? | tphyahoo | Shell Programming and Scripting | 2 | 01-30-2009 04:20 PM |
| Finding executable files in all directories | CSGUY | UNIX for Dummies Questions & Answers | 4 | 04-19-2005 06:34 PM |
| Converting Unix executable files | Steven Greenber | OS X (Apple) | 4 | 02-04-2005 12:58 PM |
| Cannot translate Unix executable files | Steven Greenber | OS X (Apple) | 1 | 02-11-2004 03:14 PM |
| pls hlp: making .sh files executable | ropers | Filesystems, Disks and Memory | 2 | 07-29-2002 05:44 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Executable files
This question always confuses me :-
Suppose I write a program and compile it on a machine with operating system A and processor B will the exe file run on a machine with operating system A2 but processor B operating system A but processor B2 operating system A2 and processor B2........ In a nutshell, Does the compatibility of a exe file depend on only operating system ? only machine architecture ? or BOTH ? |
|
||||
|
There are CPUs: i386, Sparc, PowerPC, MIPS, PA-RISC, MC68020 etc
There are object file formats: ELF, XCOFF, COFF, PE, SOM, AOUT etc Then there are CPU modes, 64 bit, 32 bit And also operating system versions, so typically a binary compiled for one version of an OS cannot be used on an earlier one. |
|
|||||
|
Hi.
Quote:
|
|
||||
|
Porter
Some body told me like this: "I think it totally depends upon the OS, provided it abstracts hardware efficiently. For example, Windows is meant for x86 architechture. Someday Microsoft comes up with Windows for SPARC that uses same system calls, i.e. H/W is abstracted. Any Win32 program would run on that too. Virtual Machines (such as JVM) do exactly that. They provide a consistent set of instructions to the programs accross platforms. Underneath these instructions are executed differently on different systems." What you say now? |
|
||||
|
Quote:
Quote:
Quote:
Even a JVM running in a embedded system will still run on an embedded OS, however minimalist that is. |
|
||||
|
What is meant by native format????
I'll add one more question, A file compiled on x86-32 architecture under Windows XP, will it work on x86-64 architecture under Windows XP or Windows 2003? Can I get a link where some guide is provided how OS and hardware architecture interact with each other. I'm really confused, not exactly understanding what is happening (inside the hardware, OS and system calls). Thanks for all your support. Last edited by nervous; 10-30-2007 at 03:48 AM.. Reason: Added one more question |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|