2008-03-27 14:28:58     declaring buffer in .s file

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

2008-03-27 14:28:58     declaring buffer in .s file

Linux Newbie (INDIA)

Message: 53161   

 

.if defined (__GNUC__)

.align 4;

array_1:

.space 12;

.else

.byte4 array_1[3];

.endif

 

The above code snippet is given in the document. Now if i want to declare an array of 100 bytes can i write it as folows

 

.align 4;

 

array_1:

 

.space 400;

QuoteReplyEditDelete

 

 

2008-03-27 15:27:49     Re: declaring buffer in .s file

Mike Frysinger (UNITED STATES)

Message: 53166    are you asking a question ?  if so, what is it ?

Attachments

    Outcomes