rdtsc:=A(k);
is not a valid instruction. Only labels can appear before :
, and after that there must be a valid instruction, which of course =A(k)
can't be. If you're doing an assignment, that's not an assembly instruction either
MS VC++ inline asm syntax error
-
30-07-2022 - |
Pregunta
long long k;
_asm
{
rdtsc:=A(k);
};
This code gives this error:
error C2400: inline assembler syntax error in 'first operand'; found ':'
error C2400: inline assembler syntax error in 'opcode'; found ':'
P.S. MS Visual C++ 2008
Solución
Otros consejos
Without being given the full source, I would say immediately that you are using a Pascal-like assignment syntax instead of C++.
Try:
rdtsc=A(k); // Without the colon
Rather than:
rdtsc:=A(k);
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow