From: Peter C. <pe...@co...> - 2015-07-31 05:19:58
|
On Thu, Jul 30, 2015 at 08:32:56PM -0600, Ace Olszowka wrote: > please make sure that a "reference" implementation is kept in fairly > Portable C. Yes, of course! It needs to work on all platforms, so the pure C version needs to be there. I got some responses to http://stackoverflow.com/questions/31734263/write-x86-asm-functions-portably-win-linux-osx-without-a-build-depend-on-yasm I'm inclined to just use masm syntax, and have ./configure search for nasm or yasm. (unless I can figure out a way to get gas to assemble it, maybe with CPP macros.) -- #define X(x,y) x##y Peter Cordes ; e-mail: X(peter@cor , des.ca) "The gods confound the man who first found out how to distinguish the hours! Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC |