Weird caching games when --cc=tcc
is being used
#226
-
I have the following mapped keys in Vim for Nelua: nmap <F5> :up <bar> !clear; /usr/bin/env -S nelua --cc=tcc % <CR>
nmap <S-F5> :up <bar> !clear; /usr/bin/env -S nelua --cc=tcc -SVt % <CR>
nmap <F6> :up <bar> !clear; /usr/bin/env nelua %<CR>
nmap <S-F6> :up <bar> !clear; /usr/bin/env -S nelua -SVt %<CR> For some reason, when
but when the other command without the usage of
My question @edubart is: which behavior of the two outputs is the right one? I forgot to mention that I first run the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is no difference when you use However when you use GCC, the |
Beta Was this translation helpful? Give feedback.
There is no difference when you use
-S
(sanitize option) with TCC, because it does not support sanitizer. So doingnelua --cc=tcc -Svt
generates exactly the same code asnelua --cc=tcc
, therefore it uses the cache.However when you use GCC, the
-S
option will add-fsanitize=address,undefined
to the compilation process, and have to recompile.