Intel Core i7 12700K system running Ubuntu 22.04 that requires precise control over output formatting. As part of this tool, I'm implementing a custom printf like function in assembly using NASM assembler and GNU Linker.printf function to hexdump . The output is displayed correctly when printed directly to the terminal, but piping it to hexdump results in no output.

output stream (stdout). In C, the standard library handles the buffering of stdout, which ensures that the buffer is flushed when the program exits or when the buffer is full. However, when you implement printf in assembly, you're bypassing these standard library mechanisms, which can lead to different behavior, especially when piping the output.stdout buffer. You can achieve this by using a write system call directly instead of relying on the C printf function.Join the Discord to ask follow-up questions and connect with the community
EdgeBench is a remote platform that lets developers build, test, and evaluate embedded applications on real hardware through a browser.
3,029 Members
Join