Re: To RISC or not to RISC



vid512@xxxxxxxxx kirjoitti:

Back to RISC:

When I am programming ASM on ARM, i have more "appropriate" feel. On
ARM, your ASM code is much faster compared to C-produced code, than on
x86.

Really? I might have to check my prejudices. I thought ARM was one
example of an architecture, where compilers actually produces compact
and fast code, as do compilers for x86 also. Taken from assembly point
of view, coding for x86 in asm nowadays involves checking your dword
boundaries alignment, using mov eax,[esi] rather than lodsd, and all
these optimal instruction scheduling peculiarities, which kind of
reduce neat asm tricks to somewhat same kind of code which would have
been produced by compiler anyway...

But really, I'm no expert on ARM for example, just had that impression
that almost all software for ARM is coded in C, especially on mobile
phones. Does assembly give you an advantage on ARM?


I love possibility to condition every instruction.


That's cool. Doesn't it get confusing?

how long are you programming ARM? What OS?

I'm no expert, have been doing some preliminary coding, making my own
disassembler for ARM, to study my mobile phones OS... Although IDA
would do just fine, but I think it's a good learning experience to make
a disassembler, so you really have to study the instruction encoding
and such.

.



Relevant Pages

  • Re: Hi
    ... ARM9 that is an entirely different instruction as on an ARM2 (in ... mode bits or flags are is affected. ... Yes the original ARM compilers could use BL in conditional execution. ...
    (comp.sys.arm)
  • Re: ADS1.2 inline assembly :Branching by writing PC is not supported
    ... I create a project as arm executable image in default settings. ... I think maybe ADS1.2 compiler doesn't support this kinds of syntax. ... You should read the ADS manual/docs. ... The inline asm in ADS is not quite pure asm, ...
    (comp.arch.embedded)
  • Re: fast arm9 cipher?
    ... RC5 might do better, it is a nice standard to use though and probably ... I don't benchmark RC4 on ARM platforms (mostly ... fast ARM asm code for some cipher, since I have no experience writing ARM ...
    (sci.crypt)
  • Re: calling assembly language routines from C
    ... verify via the ARM website and the ARM Thumb ... ASM code? ... I've written a couple of routines in ARM assembly language because ... I've gotten to work in assembly language a lot for a number of years ...
    (comp.sys.arm)
  • Re: 49g+ 2.00C features
    ... I can read the SysRPL and most of the Saturn ASM in your example, ... I'm planning to start learning ARM after I'm done learning Saturn ... The HP assembly language looks quite foreign. ...
    (comp.sys.hp48)