-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get include length size #221
Comments
If I understand you correctly, your issue is that I think for this the least hacky way is to preserve raw labels from You can then I'm using that in my own Let me know, if I understood you correctly, and if this helps, or why you can't use this approach. |
Sorry that it took so long, I tried different things, in general you can live with this, but it’s very inconvenient to use this.
|
Another option is to always include the uncompressed data first (to have correct uncompressed size) and then override them with compressed ones.
And one more option is to use lua script and it's io API to figure out file length (I assume it's possible to do in Lua script). I still think the most sjasmplus-intended-way is to have multi-stage build, assembling uncompressed data first which will define + export uncompressed labels with final memory layout, prepare compressed archive and then the final asm includes compressed archive and the exported original labels for code manipulating with the decompressed data. Not sure what enhancement would help here, add directive to get file length? I see there is Syntax would be probably like this:
Does this make sense to you, do you think this is worth of implementing? I don't see much value in such addition, but also I don't see any big issue with adding it. (adding this to 1.21 milestone, as I'm going to either implement something or close this, doesn't feel like this will become clearer after few years of being open) |
1.20.3
example
in the first pass, when the _REBUILD preprocessor is installed, N files are assembled into one common file and this file is subsequently archived.
in the second case, when the _REBUILD preprocessor is not installed, the archived block is embedded.
This is the main problem, is it possible to somehow get the length of the inlud files (in the first case), but being in the second, so that after unzipping them in memory. Thus, upon receiving the length of the first include, the address of the next one can be calculated, etc. example: address + size of the first insert = new address of the next insert, etc.
The text was updated successfully, but these errors were encountered: