lcc for mips: pseudo instruction - ulw, usw, ulh, ush etc.

  • Follow


Hi,

I am writing an assembler for "MIPS" compiled by lcc. I meet an issue:
a local array will be copyed into its stack. For example:
   void foo(void){
        char s[]="1234567";
        ....
   }
lcc will put string "1234567" in to .rdata section, then copy them back
to stack in function foo(). There may have alignment situation, so lcc
use ulw, usw etc..
The processor, I am targeting, does not support unaligned memory
access. How can I deal with it in my assembler?

PS. Actually, I am trying to make an asmebler working for an MIPS like
processor on FPGA. 

Thanks

0
Reply zhg.liu (8) 9/19/2005 3:54:23 PM


0 Replies
384 Views

(page loaded in 0.087 seconds)

Similiar Articles:




7/23/2012 4:38:22 PM


Reply: