2009-03-05 23:30:57     Blackfin uclinux assembly

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-03-05 23:30:57     Blackfin uclinux assembly

mandar kulkarni (AFGHANISTAN)

Message: 70485   

 

Hi,

 

we are trying to declare an array in bfin-uclinux assembly.

 

syntax for variable declaration is

 

aa:  .byte4

 

 

 

what is the syntax for uninitilised array declaration?

 

we tried for the array of 5 elements,

 

array_1:

 

.byte4

 

.space 20

 

 

 

We are using DDD for debugging of programs,but we are not able to plot array in in assembly using DDD.

 

Is it the problem with DDD or syntax of array declaration should be changed??

 

 

 

Mandar

 

 

QuoteReplyEditDelete

 

 

2009-03-06 00:23:25     Re: Blackfin uclinux assembly

Mike Frysinger (UNITED STATES)

Message: 70488   

 

this isnt Blackfin or Linux specific.  if you dont know how to use the gas syntax, write it in C first and read the resulting assembly gcc generates.

 

$ cat test.c

int arr[10];

$ bfin-uclinux-gcc -S -o - test.c

.file "test.c";

        .comm   _arr,40,4

        .ident  "GCC: (ADI-trunk/git-fab1910) 4.3.3"

Attachments

    Outcomes