Skip to content

Register names report as errors #29

@tomezpl

Description

@tomezpl

When performing arithmetic operations, the compiler invokes an internal function that saves data from the appropriate arithmetic CPU register into memory (_!c_memory_savereg(registerName)) essentially allowing to store results of those operations and assign them to variables. The intermediate code generator passes the name of the register for that specific arithmetic operation as a parameter to this function, which the assembly generator picks up as invalid because register names such as 'eax', 'ebx', 'edx' are not declared in static data, therefore resulting in false error messages about invalid symbol names. This can, however, be ignored and the program will still compile successfully.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions