Re:The Nitty Gritty of “Hello World” on macOS (2014)
by foldr on Tuesday May 05, 2020 @04:33AM
(#23077799)
I wrote a blog post on a similar topic that goes into a bit more detail in some areas: https://adrummond.net/posts/macho There have also been some significant changes since 2014.
Re:The Nitty Gritty of “Hello World” on macOS (2014)
by jjcm on Tuesday May 05, 2020 @11:55PM
(#23087774)
First time I've seen that style of visualization for the byte code. Really effective way of breaking it down though, and allows a good way of visually seeing sections of code.
Re:The Nitty Gritty of “Hello World” on macOS (2014)
by AlEinstein on Wednesday May 06, 2020 @07:51AM
(#23089928)
You are correct!
To answer your question, writing a NUL char to stdout is no problem. Some utilities can actually use it as a delimiter since it’s so uncommon. I think most shells would just print nothing on the screen.
They're super neat for first-pass "is this structured or random data" analysis of binary files.
1: https://binvis.io/ 2: https://codisec.com/veles/
To answer your question, writing a NUL char to stdout is no problem. Some utilities can actually use it as a delimiter since it’s so uncommon. I think most shells would just print nothing on the screen.