Repository navigation
arch/tricore: support C preprocessing for tasking asm - #21510
zhangyu981027 wants to merge 1 commit into
Conversation
|
ssekar15
left a comment
There was a problem hiding this comment.
we already agree that PR split will be done by us.
why? it isn't related to iLLD drop. it's open-source project, anyone could improve it as needed. |
changes in this PR are already covered in initial PR, we mutually agreed to a point avoid duplication of work and we continue split of initial PR from our end. d42669c#diff-62b8ccb716fcc4c072da138049123478c3bff92308c22384152389fc28542f5fR82 |
I don't see your code change Makefile like: |
ssekar15
left a comment
There was a problem hiding this comment.
I would recommend to please wait until we complete the split of our initial PR and merge smoothly, perhaps I will announce the point when we reached there. This will completely avoid our duplication of effort (which we already completed).
2bd8dc1 to
99229b4
Compare
|
@zhangyu-duck avoid duplication. |
small function i need this pr merge |
Support including nuttx/config.h and #if on CONFIG_* in tasking .asm sources by preprocessing them with ctc -E before assembly. 1. ctc -E runs as a pre-pass since the astc assembler has no C preprocessor of its own. 2. Comments in asm must not contain lone apostrophes since ctc -E reads them as unterminated C character constants. Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com>
@ssekar15 could you remove the request change mark? it's a small change. |
99229b4 to
a20d88c
Compare
|
the similar function included in #21546 |
Summary
Preprocess TriCore TASKING
.asmsources withctc -Ebefore invoking the assembler, allowing them to includenuttx/config.hand use#ifonCONFIG_*symbols. Apply the same two-stage assembly flow to both CMake and Makefile builds and make the affected headers safe for assembly inclusion.Impact
TASKING assembly sources can now use C preprocessor directives consistently with GNU assembly sources. This changes only the TriCore TASKING build path; other toolchains and runtime behavior are unaffected.