error: operand sizes do not match.

Just starting out? Need help? Post your questions and find answers here.
superadnim
Enthusiast
Enthusiast
Posts: 480
Joined: Thu Jul 27, 2006 4:06 am

error: operand sizes do not match.

Post by superadnim »

i get the following error message compiling several different projects

Error: Assembler
PureBasic.asm [7290]:
mov esi,qword [rsp+PS1222+0]
error: operand sizes do not match.

i tried to isolate the error but using /COMMENTED doesn't give me an output .asm file to check for.
this happens while running 5.70lts on previous versions it all compiles fine

could it be related to unicode switch force?

if i can figure out what causes it maybe i could isolate the part of the code right now they are both big projects and i cant figure it out i would like to port them to newer version of pb.

thanks!

:lol: should I bash the keyboard and give up?
:?
User avatar
idle
Always Here
Always Here
Posts: 5098
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: error: operand sizes do not match.

Post by idle »

Try updating to 5.71 LTS
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8433
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: error: operand sizes do not match.

Post by netmaestro »

If Idle's (very good) suggestion does not work for you, try compiling successfully with an earlier version using /commented and then you can look for the barfed code and perhaps isolate the command or function it's related to. It's a place to start at least.
BERESHEIT
superadnim
Enthusiast
Enthusiast
Posts: 480
Joined: Thu Jul 27, 2006 4:06 am

Re: error: operand sizes do not match.

Post by superadnim »

ill be trying both right now thank you

:lol: should I bash the keyboard and give up?
:?
superadnim
Enthusiast
Enthusiast
Posts: 480
Joined: Thu Jul 27, 2006 4:06 am

Re: error: operand sizes do not match.

Post by superadnim »

tried all versions (down to 5.00) and i still get the same error on x64 but it all compiles on x86 any ideas? i had to heavily modify the code so it would compile on the older versions but it always throws the same error if the compiler is x64

:lol: should I bash the keyboard and give up?
:?
User avatar
idle
Always Here
Always Here
Posts: 5098
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: error: operand sizes do not match.

Post by idle »

do you have inline asm in your code, that doesn't look like PB generated Assembly where does PS1222 come from?
if it's x64 it should read mov rsi, [rsp+PS1222+0]
mov esi,qword [rsp+PS1222+0]
Windows 11, Manjaro, Raspberry Pi OS
Image
Post Reply