Actions
Feature #88
openAdd add_ptr instruction for the pointer arithmetic
Feature #88:
Add add_ptr instruction for the pointer arithmetic
Status:
New
Priority:
Normal
Assignee:
-
Category:
IR
Start date:
Due date:
% Done:
0%
Estimated time:
Description
Adding a number to a pointer always advances the pointer by one byte. This is wrong since the pointer should be advanced by the number multiplied by the size of the pointer base type.
To support this a new TAC instruction should be introduced, "add_ptr": add_ptr(pointer, index, scale, destination).
Actions