Hi
Currently tcc don't  implement .rept and .endr directives in *.S
In tccboot kernel we have (arch/i386/kernel/entry.S)

#if 0
        .rept NR_syscalls-(.-sys_call_table)/4
<------><------>.long SYMBOL_NAME(sys_ni_syscall)
<------>.endr
#else
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
        .long SYMBOL_NAME(sys_ni_syscall)
#endif..........

This is ugly. How to implement this macro? Where to put code between
.rept .endr?
Any ideas?

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to