Building OMF files in #CTRAN has hit a brick wall. When generating a class, one ...
The Last Psion | Alex @thelastpsion@oldbytes.space
Building OMF files in #CTRAN has hit a brick wall.
When generating a class, one of the fields needed is "size of property" - basically the amount of RAM needed to store all the fields for a instance of the class, including the fields from its ancestors. Sounds relatively simple, right?
Well, Psion external category files don't include any information about a class's property other than the boolean HAS_PROPERTY.
The only way I'm going to be able to get that exact information is by parsing all the C headers that the class would need.
The "proper" way to do this would be to bolt a good proportion of a C parser and AST generator on to CTRAN. Considering what CTRAN is meant to be, I don't really want to go down that route.