[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] .rept .endr for *.S. Any ideas?
From: |
Sergey Korshunoff |
Subject: |
[Tinycc-devel] .rept .endr for *.S. Any ideas? |
Date: |
Thu, 14 Apr 2016 15:54:31 +0300 |
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] .rept .endr for *.S. Any ideas?,
Sergey Korshunoff <=