On Mon, 20 May 2019 at 20:05, Timo Sintonen via D.gnu
wrote:
>
> On Sunday, 19 May 2019 at 18:58:09 UTC, Iain Buclaw wrote:
>
> >
> > What's the system compiler version you are using? I've tested
> > with both gcc-9.1 and gcc-8.3, not able to reproduce.
>
> It is in the dump above (even two times
On Sunday, 19 May 2019 at 18:58:09 UTC, Iain Buclaw wrote:
What's the system compiler version you are using? I've tested
with both gcc-9.1 and gcc-8.3, not able to reproduce.
It is in the dump above (even two times ;)
GNU D (GCC) version 9.1.0 (arm-eabi)
compiled by GNU C version
On Mon, 20 May 2019 at 12:50, D_Boy via D.gnu wrote:
>
> On Monday, 20 May 2019 at 08:01:01 UTC, D_Boy wrote:
> > I am following Ali Çehreli's book. It says that stdout.write()
> > should work the same as write()
> >
> > In DMD it works. But when trying to compile with GDC I get the
> > following
On Monday, 20 May 2019 at 08:01:01 UTC, D_Boy wrote:
I am following Ali Çehreli's book. It says that stdout.write()
should work the same as write()
In DMD it works. But when trying to compile with GDC I get the
following error:
gdc anApp.d -o anApp && ./anApp
/usr/bin/ld: /tmp/cc5zJLcW.o: in
On Monday, 20 May 2019 at 08:21:19 UTC, Iain Buclaw wrote:
Looks like you've done a typo to me. Memory should be a
clobber, not an input operand.
Yes, that too.
On Monday, 20 May 2019 at 08:11:19 UTC, Mike Franklin wrote:
But I can't get GDC to do the same:
https://explore.dgnu.org/z/quCjhU
Is this currently possible in GDC?
Gah!! Ignore that. `version (GNU)`, not `version(GDC)`.
This works:
void use(void* p)
{
version(LDC)
{
imp
On Monday, 20 May 2019 at 08:11:19 UTC, Mike Franklin wrote:
I'm trying to benchmark some code, but the optimizer is
basically removing all of it, so I'm benchmarking nothing.
I'd like to do something like what Chandler Carruth does here
to defeat the optimizer:
https://www.youtube.com/watch
I'm trying to benchmark some code, but the optimizer is basically
removing all of it, so I'm benchmarking nothing.
I'd like to do something like what Chandler Carruth does here to
defeat the optimizer:
https://www.youtube.com/watch?v=nXaxk27zwlk&feature=youtu.be&t=2446
Here presents the fol
I am following Ali Çehreli's book. It says that stdout.write()
should work the same as write()
In DMD it works. But when trying to compile with GDC I get the
following error:
gdc anApp.d -o anApp && ./anApp
/usr/bin/ld: /tmp/cc5zJLcW.o: in function `_Dmain':
anApp.d:(.text+0x32): undefined re