ive implemented complex numbers arithmetics using assembly and compiled it using nasm compiler. afterwards ive succesfully used that lib with gcc, vc++, bcb and even with delphi.
main purpose of writing that code was to add it to XaoS. i did that and even compiled XaoS without any error. but in runtime XaoS crashes when trying to call some of my functions. using gdb i found out that there is something 'wrong' with passing parameters to functions, but only when function returns complex number structure.
after a couple of hours i still dont how to deal with it ;(
edit:
finally ive found crashing down reason. its because of flag -omit-frame-pointer. its because my assembly code is a bit dirty and we cannot use this flag with gcc.
Blog - XaoS crashes while using my complex numbers - f**k
segfaultlabs.com » Blog » XaoS crashes while using my complex numbers - f**k