Echo – Assembly program that prints the first positional argument to stdout
1–10 of 50 posts
Re: Echo – Assembly program that prints the first positional argument to stdout
#2I'm curious as to the why. Kubernetes doesn't keep Kelsey busy enough? :-)
Re: Echo – Assembly program that prints the first positional argument to stdout
#3Doesn't echo print all the arguments?
Re: Echo – Assembly program that prints the first positional argument to stdout
#4Now rewrite in IR =))
Re: Echo – Assembly program that prints the first positional argument to stdout
#5Serious question: why is this on HN front page? Am I missing something?
Re: Echo – Assembly program that prints the first positional argument to stdout
#6I'm curious as to the why. Kubernetes doesn't keep Kelsey busy enough? :-)
I guess it's because the echo command included in the shell was slow.
Re: Echo – Assembly program that prints the first positional argument to stdout
#7echo returns nonzero if it cannot write ...
touch foo.txt; chmod 400 foo.txt; echo ouch > foo.txt; echo $?
.., but it appears this asm returns zero always.
Re: Echo – Assembly program that prints the first positional argument to stdout
#8echo returns nonzero if it cannot write ... touch foo.txt; chmod 400 foo.txt; echo ouch > foo.txt; echo $? .., but it appears this asm returns zero always.
How do "raw" system calls pass back error information on Linux? errno is strictly a C/POSIX abstraction, right?
Re: Echo – Assembly program that prints the first positional argument to stdout
#9I'm curious as to the why. Kubernetes doesn't keep Kelsey busy enough? :-)
Based on his twitter it looks like it was just an interesting thing to learn over the holidays or as a 2017 thing.
Re: Echo – Assembly program that prints the first positional argument to stdout
#10Serious question: why is this on HN front page? Am I missing something?
I feel it's kind of interesting as a minimal Unix program that does something useful without linking to the C library, just with syscalls.
Even for echo, this one is extremely minimalist: first argument only, and a maximum of 255 characters.