Support for user-defined attributes
reg X[32, DWORD] // Array of 32 DWORD Registers mode REG(i: card(5)) = X[i] // One-to-One Correspondence syntax = format("x%d", i) // Assembly Format (e.g., x13) image = format("%5s", i) // Binary Encoding (e.g., 1101) number = i // Register Number (custom)
Updated by Andrei Tatarnikov over 3 years ago
- Status changed from New to Feedback
- Assignee changed from Andrei Tatarnikov to Alexander Kamkin
In task Task #6372, we implemented external access to arguments. Now you can get the register index in the following way:
As for support for externally-visible custom attributes, I am not sure this is a good idea. With such attributes, operations will have several entry points. This will complicate exploring their control flow. For example, some arguments can be IN or OUT in different contexts.
If external access to arguments is enough to solve our tasks, I don't see reasons to provide external access to custom attributes.