-
Notifications
You must be signed in to change notification settings - Fork 397
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
CMake: Add support for pasm2asm on NASM source files #3042
Conversation
Signed-off-by: Devin Nakamura <devinn@ca.ibm.com>
Why do we need to run a preprocess on the nasm files? Can you provide an example? NASM should have enough support that a preprocessor seems redundant and cumbersome for no reason. |
It looks like its just so that it can consume |
As far as I can tell j9cfg.h from the OpenJ9 project is a generated file.... wouldn't it make more sense to generate a NASM consumable version of j9cfg.h (j9cfgh.inc?) and include that properly in NASM instead of preprocessing all of the NASM files? |
I believe there is only one #define that's needed from j9cfg.h. @nbhuiyan planned on modifying the jilconsts generator to add the needed definition in there to avoid this dependency. That work is planned for by end of October. The initial version, however, still relies on the C preprocessor unfortunately. |
From a quick look at I could be missing something about jilconsts? |
I would personally prefer to see new work for a downstream project happen in the downstream project and not in OMR whenever possible. If it is a matter of adding 1 new constant to |
@nbhuiyan : you've studied that code more than I have. Is the change that straightforward? If so, please make it in OpenJ9 so we can avoid this OMR dependence. |
@0xdaryl Yes, the change is pretty straightforward. I was already planning on not making use of the C Preprocessor right when I was preparing the initial version of the NASM files. However, I decided to delay that as there were suddenly some activity over the last month in the MASM-equivalent I think we can get rid of the |
@0xdaryl @charliegracie @dnakamura eclipse-openj9/openj9#3243 would remove the need for the C preprocessor for NASM files. |
Thanks. This PR should be closed then. |
Closing as per the comment from @nbhuiyan |
Signed-off-by: Devin Nakamura devinn@ca.ibm.com