Connect with us

Vx-toolset Tricore Access

; myasm.s .section .text, "x" .global _my_func _my_func: movh.a %a4, #hi(my_data) lea %a4, [%a4] #lo(my_data) ld.w %d2, [%a4] ret Compile with:

// Use TASKING's __task specifier to place task control block in .task section Inline assembly int add_with_carry(int a, int b) int res; __asm(" addc %0, %1, %2" : "=d"(res) : "d"(a), "d"(b)); return res; vx-toolset tricore

memory mem_dspr0 mau = 8; size = 64k; type = ram; map (dest=bus:local, dest_offset=0x60000000, size=64k); ; myasm

The TriCore architecture has Harvard-like separated buses, and the toolset defines special sections: myasm.s .section .text