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 uses ulw, usw etc.. The processor, I am targeting, does not support unaligned memory access e.g. LWL, SWL, LWR.
How can I deal with it in my assembler? or how to force Lcc not to use these unaligned memory access instruction.
PS. Actually, I am trying to make an asmebler working for an my MIPS like processor on FPGA.
Thanks