Zeno Arrow
Member
- Joined
- Oct 5, 2008
- Messages
- 195
Hi all.
Number of times in this forum I've seen people take a guess on how easy or hard a Linux app will be to port to the Pandora. I've been thinking about this, and other than the processing power requirements for certain apps, I can't see why the majority of Linux apps won't be very straightforward to get working. For those who know better please try not to cringe too hard whilst I explain why I think this...
Okay, so most Linux packages are designed to work on x86 processors, but with source code available we don't need ready made packages, we can compile from source, right? Packages are obviously nice to have but just trying to gauge how quickly we can get something working.
If a program is known to compile on an x86 version of GCC with certain flags set, will compiling on an ARM version of GCC (same version number) with the same flags be just as painless? If not, why not? I understand that different compilers won't always produce the same results, but if you use GCC on both platforms where's the problem?
I realise some programming languages are more portable than others (ASM obviously is out, but how many programs have ASM as part of their source code? Not many I'd be willing to wager). Let's say we were hoping to port a program written in C, for example. What affect does processor endianness have to play on the possibility of ports written in C? As far as I can see only numbers stored directly as pure binary would be affected.
There are issues I've missed out (such as the availability of libraries like Qt), but too summarise my rambling above, I'll ask this: What potential blocks are we likely to encounter when porting x86 Linux programs written in C to the Pandora? Thanks in advance for your advice.
Number of times in this forum I've seen people take a guess on how easy or hard a Linux app will be to port to the Pandora. I've been thinking about this, and other than the processing power requirements for certain apps, I can't see why the majority of Linux apps won't be very straightforward to get working. For those who know better please try not to cringe too hard whilst I explain why I think this...
Okay, so most Linux packages are designed to work on x86 processors, but with source code available we don't need ready made packages, we can compile from source, right? Packages are obviously nice to have but just trying to gauge how quickly we can get something working.
If a program is known to compile on an x86 version of GCC with certain flags set, will compiling on an ARM version of GCC (same version number) with the same flags be just as painless? If not, why not? I understand that different compilers won't always produce the same results, but if you use GCC on both platforms where's the problem?
I realise some programming languages are more portable than others (ASM obviously is out, but how many programs have ASM as part of their source code? Not many I'd be willing to wager). Let's say we were hoping to port a program written in C, for example. What affect does processor endianness have to play on the possibility of ports written in C? As far as I can see only numbers stored directly as pure binary would be affected.
There are issues I've missed out (such as the availability of libraries like Qt), but too summarise my rambling above, I'll ask this: What potential blocks are we likely to encounter when porting x86 Linux programs written in C to the Pandora? Thanks in advance for your advice.