HackerTrans
トップ新着トレンドコメント過去質問紹介求人

phafu

no profile record

投稿

Ask HN: Help with doing statistics over machine code

2 ポイント·投稿者 phafu·昨年·2 コメント

Show HN: Nondeterministic finite queued dialog automaton

gitlab.com
29 ポイント·投稿者 phafu·2 年前·2 コメント

コメント

phafu
·昨年·議論
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 年前·議論
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 年前·議論
thx, fixed
phafu
·2 年前·議論
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.