-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline asm label naming issue #2667
Comments
|
Here's my experiences as a compiler noob: For me it generated the code, however when I tried to run a program using it (see PixelPerfectEditor subpackage here: https://github.com/ZILtoid1991/pixelperfectengine ) the composing functions didn't work as intended and didn't perform the jumping out of the cycles when there were no more pixels left, also some of the parameters look really off. Did some modifications to the code, replaced the buffer for color lookup functions with D's built-in dynamic arrays (which is often more tolerant with out-of-bounds reads in my own experience), this time the code generates a stack overflow exception. I'm trying to get rid of the current multithreading system in the rendering, as it allocates on the heap, and I want a @nogc-able solution in the future. I'll document how it changes the execution, might be an error regarding std.parallel. |
|
You are getting compiler errors, so don't expect the code to do anything sensible. Not sure why the compiler doesn't abort, which is an error in its own right. |


ZILtoid1991/CPUblit@fa802a4 doesn't compile with LDC.
The cause is in
src/CPUbilt/composing.d, which fails with errors like:I haven't had a proper look at this yet, but from a quick glance at the
-vvoutput, it seems like we are emitting the label – properly! – asL_D7CPUblit9composing11blitter8bitFNiPhPhPhmZv_eightpixel, but try to reference it without the full mangle.This only occurs if there is more than one overload of the function in question.
The text was updated successfully, but these errors were encountered: