PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Free at last from the shackles of bad C compilers!!!

[Emotional Programmer Dribble On]
I've just made the jump from x86 to ARM assembly language and it is incredibly liberating. When programming on the Desktop PC I never really cared about how bad the C compiler was because I always wrote time critical code in assembly language. I suffered with the Microsoft C compilers since WinCE 1.x. I've done workarounds for workarounds to get reasonable output from their C compilers. I waited a while before making the jump to ARM assembly language because MIPS and SH3 devices were still lurking out there. Now that ARM has conquered pretty much every battery powered device, it's good to be back :)

Of course ARMASM / eVC4 don't let me debug things like I would like, but it works and the performance boost of writing on the bare metal is worth the effort.

[Emotional Programmer Dribble Off]

L.B.
I'd prefer a good c compiller, since I never used assembler and particularly ARMASM, which is very different.
bitbank wrote:[Emotional Programmer Dribble On]
I've just made the jump from x86 to ARM assembly language and it is incredibly liberating.


when I did that jump, I felt I had been fooled for a long time. Years after that, I feel it'd be impossible to me to get back to the scarce amount of registers and the extremely long mnemonics intel has :)

p.s. but I'd change the conditional instructions for 16 extra registers, a la MIPS ;)
Kak,
I was spoiled by the 68000 in 1985. IBM's choice of the 8088 pissed me off for a long time. I'm sure the amount of wasted time of programmers fighting the lack of registers and 64k segment limits is in the billions of man hours.

L.B.
bitbank wrote:Kak,
I was spoiled by the 68000 in 1985. IBM's choice of the 8088 pissed me off for a long time. I'm sure the amount of wasted time of programmers fighting the lack of registers and 64k segment limits is in the billions of man hours.

L.B.

Since 1985 the 386 had a protected mode with the ability of linear flat addressing, it's just that DOS didn't support it.
(Even the 80286 hat something similiar but it couldn't get back from protected mode AFAIK).
Programming x86 assembler wasn't that bad, the REAL pain was fitting the code to gain efficient cache and pipeline usage.

But ARM is surely more elegant than x86. (every RISC architecture is more elegent than x86 ;))
bitbank says it like it is. I went from the wonderfully easy to use Motorola 68000 to Intel's mad memory addressing (take an address, chop it in half, rearrange the parts, move the low bit to a random location and so on) and went through vast pain in the process of learning (though not as much pain as going from Assembler to C++)
Is there a version of ARMAsm that you can compile programs directly on the PocketPC or is it just for compiling Pocket PC programs on the Desktop?
You should be able to use the assembler included in the GCC compiler native to PPC. However the url we have here is broken:
http://www.pocketmatrix.com/forums/view ... hp?t=13235

[edit]I found the Yahoo Group that is now hosting that project. See the above thread for the updated url.[/edit]

Dan East
It's quite ironic to be talking about wasted man hours and ASM in the same sentence :)