[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Using intrinsics in tcc?
From: |
Levo D |
Subject: |
[Tinycc-devel] Using intrinsics in tcc? |
Date: |
Sat, 31 Dec 2022 07:13:40 +0000 (UTC) |
How do people usually call intrinsics from tcc? If I wrote a wrapper in C and
compiled it using clang or gcc, I won't have any issues linking or with an ABI?
I'm specifically thinking about AVX2 instructions/YMM registers on x86-64 (my
linux build) and NEON on ARM (mac build).
The only instruction off the top of my head that may have an issue is
__rdtsc/__rdtscp. The overhead of a function call would make it useless.
However I use tcc with debug builds and I can't think of a good reason to use
__rdtsc in a debug build. Has someone already done the work of writing a c
wrapper for AVX or NEON?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] Using intrinsics in tcc?,
Levo D <=