DontBelieveMe / helix

"Compiler Optimisation Techniques" - BSc Computer Science Final Year Project (Sheffield Hallam University)
2 stars 0 forks source link

As per AAPCS32 - "char" is not signed #11

Open DontBelieveMe opened 2 years ago

DontBelieveMe commented 2 years ago

I've (subconsciously more than anything else) been operating under the assumption that char is signed, but AAPCS32 defines it as unsigned (https://github.com/ARM-software/abi-aa/blob/main/aapcs32/aapcs32.rst#811arithmetic-types).

Since the compiler doesn't really handle signedness (or even non int types :D) very well, this probably doesn't affect anything yet, but it's worth doing a pass over to double check