Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is serious abuse of nasm macro-preprocessor. Going to be tough to move away to another assembler.


Why move away?


Not everyone wants to use nasm. Sometimes all you have is the clang integrated assembler :(


You could use GAS, FASM2, or write an ffmpeg specific one: writting a real-life assembler is orders of magnitude simpler than writting a real-life compiler... Usually that implementation complexity is very dependent on the macro pre-precessor one.

This is a matter of exit cost: for instance look at linux bitkeeper->git exit.


> Not everyone wants to use nasm.

Yeah, but I'd really only be concerned with what the ffmpeg developers want here.


Yep, look at nasm SDK, horrible, with tons of perl generators, etc, etc. From the worst.


Where? There's very little code in those lessons


The lessons reference `cglobal` in `x86inc.asm`:

https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/x86/x...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: