Re: To RISC or not to RISC
- From: "vid512@xxxxxxxxx" <vid512@xxxxxxxxx>
- Date: 30 Oct 2006 04:23:02 -0800
yes, i am "vid" (not VID) from FASM board
Really? I might have to check my prejudices. I thought ARM was oneyes, they do. but you have "bigger field" to play on, you can use
example of an architecture, where compilers actually produces compact
and fast code, as do compilers for x86 also.
funnier constructs.
Taken from assembly point of view, coding for x86 in asm nowadays involvesnice thing you mentioned alignment. Many C programmers might be
checking your dword boundaries alignment, using mov eax,[esi] rather than lodsd,
wondering
why their "int = *(int*)data;" crashes, when data is not aligned :)
and all these optimal instruction scheduling peculiarities, which kind ofoptimization in handwritten ASM is not based on timings, unrolling,
reduce neat asm tricks to somewhat same kind of code which would have
been produced by compiler anyway...
pairing etc. These things are done better by compiler than human. It is
based on one less level of abstraction, which you have in C.
But really, I'm no expert on ARM for example, just had that impressionyes it is. I found only 1 (!!!) program for winCE written in assembly
that almost all software for ARM is coded in C, especially on mobile
phones.
(besides mine).
Does assembly give you an advantage on ARM?same as on x86
sure it does. there's the fun.I love possibility to condition every instruction.That's cool. Doesn't it get confusing?
i might be interesting to have size contest on ARM, like we have on
x86.
what OS is it?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...
are you doing that disassembler as project for other people to use, or
just your own?
Although IDA would do just fine, but I think it's a good learning experience to makeyes, that is best way to learn about machine you are using.
a disassembler, so you really have to study the instruction encoding and such.
i was learning x86 asm same way...
.
- References:
- To RISC or not to RISC
- From: KJH
- Re: To RISC or not to RISC
- From: Betov
- Re: To RISC or not to RISC
- From: randyhyde@xxxxxxxxxxxxx
- Re: To RISC or not to RISC
- From: Betov
- Re: To RISC or not to RISC
- From: randyhyde@xxxxxxxxxxxxx
- Re: To RISC or not to RISC
- From: Betov
- Re: To RISC or not to RISC
- From: vid512
- Re: To RISC or not to RISC
- From: KJH
- To RISC or not to RISC
- Prev by Date: Re: opcode of mov instruction
- Next by Date: Re: HLA and embedded controllers
- Previous by thread: Re: To RISC or not to RISC
- Next by thread: Re: To RISC or not to RISC
- Index(es):
Relevant Pages
|