Hello,
I am using TI 18.12.2.LTS C/C++ compiler to build the .asm file, which has mixed assembly and C/C++ environments to share C headers containing declarations and prototypes between the C and assembly code.
I found .cdecls directive and the sample example for the usage of mixed assembly and C/C++ environments inside .asm file on below document and having code as :
line 1. .cdecls C,NOLIST
line 2. %{
line 3. #define ASMTEST 1
line 4. %}
line 5. .cdecls C,NOLIST
line 6. %{
line 7. #ifndef ASMTEST
line 8. #warn "ASMTEST not defined!" /* will be issued */
line 9. #endif
line 10. %}
When I am trying to build above code received segmentation fault with below message :
(ASM) src/os/threadx/tx_thread_schedule.asm
INTERNAL ERROR: /build_server/compiler/ti-cgt-arm_18.12.2.LTS/bin/armasm experienced a segmentation fault
while processing section .text file src/os/threadx/tx_thread_schedule.asm line 4
This is caused by a defect in the TI Assembler.
TI Customer Support may be able to suggest a workaround to avoid this.
Upgrading to the newest version of the compiler may fix this problem.
Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue".
We need to see this ENTIRE error message and a complete, reproducible
test case including ALL of the command-line options.
>> Compilation failure
Request you to provide some solution on usage of mixed assembly and C/C++ environments to share C headers containing declarations and prototypes between the C and assembly code.
Regards,
Salim Mulla