Re: -ffreestanding option

2018-07-25 Thread Mike Franklin via D.gnu
On Wednesday, 25 July 2018 at 10:32:40 UTC, Zheng (Vic) Luo wrote: Instead of forcing developers to avoid memset-like access pattern in a freestanding environment and increasing their mental burden, a universal flags to disable these the generation of these calls will probably be a better choi

Re: -ffreestanding option

2018-07-25 Thread Zheng Luo (Vic) via D.gnu
On Wednesday, 25 July 2018 at 10:05:50 UTC, Mike Franklin wrote: On Wednesday, 25 July 2018 at 08:37:28 UTC, Zheng (Vic) Luo wrote: Current implementation of compilers assumes the existence of some symbols from libc, which leads to an infinite loop if we want to implement primitives like "mem

Re: -ffreestanding option

2018-07-25 Thread Mike Franklin via D.gnu
On Wednesday, 25 July 2018 at 08:37:28 UTC, Zheng (Vic) Luo wrote: Current implementation of compilers assumes the existence of some symbols from libc, which leads to an infinite loop if we want to implement primitives like "memset" with our own code because the compiler will optimize consecut

Re: -ffreestanding option

2018-07-25 Thread Zheng Luo (Vic) via D.gnu
On Tuesday, 5 May 2015 at 17:51:51 UTC, Johannes Pfau wrote: Am Tue, 05 May 2015 11:37:17 + schrieb "Mike" : So, perhaps in my ignorance, I have to say that I don't need a -ffreestanding option, but I don't consider myself much of an expert in this field. If you know of a need for the -f