HackerTrans
TopNewTrendsCommentsPastAskShowJobs

phafu

no profile record

Submissions

Ask HN: Help with doing statistics over machine code

2 points·by phafu·last year·2 comments

Show HN: Nondeterministic finite queued dialog automaton

gitlab.com
29 points·by phafu·2 years ago·2 comments

comments

phafu
·last year·discuss
For my purpose I don't need to get back to the original source, no.

The gcc part is only relevant with regards to what dialect of assembler I need to parse. If I go that route, I'd write a parser for the GNU assembler, and that would of course work with any code in that dialect, regardless from which compiler it came from (I haven't checked whether other compilers can produce GNU assembler though).
phafu
·2 years ago·discuss
I'm wondering if it would rather make more sense to emulate a CRT with a video projector and some shutter device (maybe a fan?) in front. Has anyone tried that yet?
phafu
·2 years ago·discuss
thx, fixed
phafu
·2 years ago·discuss
At least for user space usage, I'm not sure a new kernel thing is needed. Quite a while ago I have implemented a user space (single producer / single consumer) ring buffer, which uses an eventfd to mimic pipe behavior and functionality quite closely (i.e. being able to sleep & poll for ring buffer full/empty situations), but otherwise operates lockless and without syscall overhead.