cancel
Showing results for 
Search instead for 
Did you mean: 

Error: .size expression for RAMTest does not evaluate to a constant

NPash.1
Associate II

I am testing the RAM code in assembly, function name is ML_RAMTest and it is ended with instruction .size ML_RAMTest, .-ML_RAMTest. It is compiling but encounter with the Error: .size expression for RAMTest does not evaluate to a constant.

Can you please provide the solution for it.

2 REPLIES 2
KnarfB
Principal III

Probably the symbol ML_RAMTest is misspelled or undefined. You can find a good example in the startup code:

    .section	.text.Reset_Handler
	.weak	Reset_Handler
	.type	Reset_Handler, %function
Reset_Handler:
...
.size	Reset_Handler, .-Reset_Handler

NPash.1
Associate II

Thank you for your reply, I have rechecked the code now the error is resolved.