3 ms·
Pardon the tangent, but could you provide a link to that project? I'm curious to see why something like printf is worth writing in assembly.
by CoastalCoder 3y ago
Pardon the tangent, but could you provide a link to that project?
I'm curious to see why something like printf is worth writing in assembly.
- sylware 3y agoAs I said in my post, I did not release it yet, and it will be very incomplete. But I am not alone, and some did assembly written printf like functions (gogol). The actual real way to work around the inappropriate complexity of that function is to remove it and switch to a brutal "put string" with string conversion functions (with space allocated on the stack). In the end it would be not that much more work in most cases, then in the end I may not even use my assembly code, but lower some printf function usage to what I said.
- CoastalCoder 3y agoAh, thanks. I wrongly guessed from your post that this printf was part of some larger, already published OSS project.
- sylware 3y agoWell, I ended up writing it because I was forking busybox for my custom file format for executables. It is not going as fast as I wanted, since I wanted it be finished "yesterday", but I may focus next on, shell matcher and basic/extended regexp.