Project

General

Profile

Actions

Feature #88

open

Add add_ptr instruction for the pointer arithmetic

Feature #88: Add add_ptr instruction for the pointer arithmetic

Added by Eugen Wissner 10 days ago. Updated about 16 hours ago.

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

Also available in: PDF Atom