I forgot the attachments
void
fun(unsigned char char_bit)
{
 int nop = 0;
 int more;
 int variables;
 int on;
 int stack;
 int shifts;
 int data;
 int around;
 int preventing;
 int an;
 int issue = 1;
 int from;
 int appearing;
}

int
main()
{
 return 0;
}
set -ex
tcc -v
tcc -gdwarf -o tst tst.c
# we don't want color codes in our output, we're removing them with sed
rizin -q -c aaa -c 's dbg.main' -c 'pdf' -c 's dbg.fun' -c 'pdf' tst | \
 sed 's,\x1b\[[0-9;]*m,,g'
+ tcc -v
tcc version 0.9.28rc 2025-09-18 mob@de8c19e1 (x86_64 Linux)
+ tcc -gdwarf -o tst tst.c
+ rizin -q -c aaa -c 's dbg.main' -c pdf -c 's dbg.fun' -c pdf tst
+ sed 's,\x1b\[[0-9;]*m,,g'

            ;-- main:
┌ int main()
│           0x00600bf7      push  rbp                                  ; 
tst.c:21 {
│           0x00600bf8      mov   rbp, rsp
│           0x00600bfb      sub   rsp, 0
│           0x00600c02      mov   eax, 0                               ; 
tst.c:22 return 0;
│           0x00600c07      leave
└           0x00600c08      ret                                        ; 
tst.c:23 }
            ;-- $a:
┌ void fun(unsigned char char_bit)
│           ; var int64_t arg1 @ rdi
│           ; var int64_t var_3ch @ stack - 0x3c
│           ; var int64_t var_14h @ stack - 0x14
│           ; var int64_t var_10h @ stack - 0x10
│           ; arg unsigned char char_bit @ stack - 0x8
│           0x00600bd6      push  rbp                                  ; 
tst.c:3 {
│           0x00600bd7      mov   rbp, rsp
│           0x00600bda      sub   rsp, 0x40
│           0x00600be1      mov   qword [var_10h], rdi                 ; arg1
│           0x00600be5      mov   eax, 0                               ; 
tst.c:4 int nop = 0;
│           0x00600bea      mov   dword [var_14h], eax
│           0x00600bed      mov   eax, 1
│           0x00600bf2      mov   dword [var_3ch], eax
│           0x00600bf5      leave
└           0x00600bf6      ret                                        ; 
tst.c:17 }
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to