News for hackers. Stuff that matters.

olegolegovich

Re:Why isn't memset() async-signal-safe? on Wednesday January 04, 2017 @08:03AM (#13317891)
> A compiler that conforms to the ABI generates code which clears the flag, if necessary.

I'm sorry, I do not follow. The conforming compiler expects that the functions are called with the clear flag. The non-conforming kernel on the other hand does not clear the flag before calling the signal handler which breaks it.

Re:Why isn't memset() async-signal-safe? on Wednesday January 04, 2017 @02:29AM (#13316383)
> The flag can have arbitrary value in on entry to memcpy in an ordinary situation not involving threads or signals.

It can not have arbitrary value on entry. x86-64 ABI mandates that the flag is cleared before any function is called (3.2.1 Registers and the Stack Frame: "The direction flag in the %eflags register must be clear on function entry, and on function return.")

Re:Learning to Read X86 Assembly Language on Friday December 02, 2016 @11:28AM (#13089918)
The x86-64 ABI does not require frame pointer setup: https://godbolt.org/g/10URYW
Re:Does a compiler use all x86 instructions? (2010) on Thursday August 25, 2016 @01:37AM (#12357125)
Do you have benchmarks, supporting "~break-even vs. 128 bit AVX on Ivy Bridge from 128 bytes up to 2KB" as I have not found it to be the case at least on Haskell (my benchmarking code is @ https://bitbucket.org/olegoandreev/scratch/src/dd7ab9008c59c...).