Re: error: matching constraint references invalid operand number

2022-03-04 Thread Iain Buclaw via D.gnu
On Friday, 4 March 2022 at 17:18:56 UTC, rempas wrote: When I try to compile, I'm getting the following error message: ``` source/time.d: In function ‘sys_clock_nanosleep’: source/time.d:132:31: error: matching constraint references invalid operand number 132 | : "memory", "rcx", "r11"

error: matching constraint references invalid operand number

2022-03-04 Thread rempas via D.gnu
Hello! After I've been convinced on using, GDC as my go to compiler when I need optimization (or other than x86_x64 targets) thanks to the replays of my previous posts, I now try to compiler my project using GDC but I'm having an error. I'm trying to use inline assembly (GCC syntax) but it won'

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread H. S. Teoh via D.gnu
On Fri, Mar 04, 2022 at 03:52:10PM +, rempas via D.gnu wrote: > On Friday, 4 March 2022 at 15:26:38 UTC, H. S. Teoh wrote: [...] > > The only difference is that GDC, being a part of the GCC project, is > > tied to the GCC release cycle, so it tends to lag behind DMD and LDC > > in terms of the

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread rempas via D.gnu
On Friday, 4 March 2022 at 15:59:33 UTC, Iain Buclaw wrote: announcement: https://forum.dlang.org/post/nuphsvwkdlygdcxai...@forum.dlang.org mainline: https://gcc.gnu.org/git.html gh-mirror: https://github.com/gcc-mirror/gcc/ Thanks a lot!

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread Iain Buclaw via D.gnu
On Friday, 4 March 2022 at 15:31:30 UTC, rempas wrote: Oh, sucks to hear that. Can I get some more info (links?) on Also do you know where is the current development source of GDC? announcement: https://forum.dlang.org/post/nuphsvwkdlygdcxai...@forum.dlang.org mainline: https://gcc.gnu.org/g

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread Iain Buclaw via D.gnu
On Friday, 4 March 2022 at 15:17:49 UTC, rikki cattermole wrote: On 05/03/2022 4:05 AM, rempas wrote: However, I'm really skeptical as to why people seem to prefer LDC and I wonder if GDC is not as stable and reliable as LDC or if most code that uses recent code doesn't work in GDC. I have als

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread rempas via D.gnu
On Friday, 4 March 2022 at 15:26:38 UTC, H. S. Teoh wrote: Both GDC and LDC are good compilers. I wouldn't hesitate to use either if performance is important in what I'm doing. The only difference is that GDC, being a part of the GCC project, is tied to the GCC release cycle, so it tends to

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread H. S. Teoh via D.gnu
On Fri, Mar 04, 2022 at 03:05:36PM +, rempas via D.gnu wrote: > From what I know, most people (if not all), seem to prefer LDC over > GDC. When it comes to C, I always prefer GCC as GCC's backend > compiles code faster and also produces code will run faster than LLVM > (even if the differences

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread rempas via D.gnu
On Friday, 4 March 2022 at 15:17:49 UTC, rikki cattermole wrote: GDC has a few issues that LDC simply doesn't have. For instance GCC can only depend on a binary of the last version of GCC (my knowledge of that is what I've heard from Iain). What this means is its stuck using a frontend that

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread rikki cattermole via D.gnu
On 05/03/2022 4:05 AM, rempas wrote: However, I'm really skeptical as to why people seem to prefer LDC and I wonder if GDC is not as stable and reliable as LDC or if most code that uses recent code doesn't work in GDC. I have also heard that LDC get support for new things faster than GDC. Is th

Is GDC a solid option versus LDC?

2022-03-04 Thread rempas via D.gnu
From what I know, most people (if not all), seem to prefer LDC over GDC. When it comes to C, I always prefer GCC as GCC's backend compiles code faster and also produces code will run faster than LLVM (even if the differences are small). When it comes to D, GDC seems to compile code faster in my