Using GCC's builtin alloca without the C standard library
Johannes Pfau
nospam at example.com
Mon Jul 23 07:15:12 UTC 2018
Am Mon, 23 Jul 2018 01:35:02 +0000 schrieb Mike Franklin:
> I'd like to be able to use GCC's `__builtin_alloca` without the C
> standard library.
>
Just import gcc.builtins for all GCC builtins:
----------------------------
import gcc.builtins;
void main()
{
auto foo = __builtin_alloca(10);
}
----------------------------
--
Johannes
More information about the D.gnu
mailing list