ARMASM to GNU-as

Guest #1171026
Rate this post
• ▲ useful
▼ not useful
Hi,

I have 3 major doubts -


1 - regarding DCD and .word
Is the ".word" directive the exact GNU-as equivalent of "DCD" in ARMASM?
My doubt is regarding memory alignment on 4-byte boundaries; does .word
take care of alignment like DCD or will I have to use an explicit .align
directive.

2 - MAP and FIELD
what is the equivalent for MAP and FIELD directives for creating
datastructures in    GNU-as?

3 - .align ?
GNU as says that the instruction ".align 4" (for example) could advance
the location counter until it is a multiple of 4 OR until it is a
multiple of 16(2^4) depending on the target and executable format. What
is it for ARM-elf?

4 -    ldr r1, =|Image$$ZI$$Limit|
I can't make sense out of this statement; what is this ->
|Image$$ZI$$Limit| ?
How do I convert this statement to GNU-as?

Awaiting replies...(please.. :-))

Regards,
Sibin

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.