| Rena I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings Level: 135 Posts: 2613/5390 EXP: 29050417 For next: 284588 Since: 07-22-07 Pronouns: he/him/whatever From: RSP Segment 6 Since last post: 333 days Last activity: 333 days |
|
||
|
Post #2613 - 11-23-09 09:17:00 PM
So apparently I have to ask again in here. I'm on Xubuntu and my MIPS 'as' is doing stupid optimizations and breaking my code.
For some reason I've had to compile it as "mips-unknown-linux-gnu-as" and similar. It doesn't support the -mno-gpopt flag, so I call it as such: mips-unknown-linux-gnu-as -EB -mabi=32 -march=vr4300 -mtune=vr4300 -mno-shared -K --warn $1.asm -o $1.elf Then I throw together some quick dummy code: LUI $k1, 0x8034 and here's what it gets turned into: 0: 3c1b8034 lui k1,0x8034 For some reason it's decided to go changing how I use $k1, and rearranged my branches in a manner that is anywhere from inefficient to just broken depending on the code. Adding the -g or -g2 flags does not change this.Additionally, objcopy isn't able to extract the code (though objdump disassembles it fine). It just outputs 24 bytes of zeros, or nothing at all. ____________________
why not?
|






