Re: [9fans] FP register usage in Plan9 assembler

2016-02-03 Thread erik quanstrom
On Tue Feb 2 08:43:47 PST 2016, sstall...@gmail.com wrote: > Hi Giacomo, > > It's probably worth mentioning that learning assembly using the Plan 9 > assembler is probably a bad idea. *a makes heavy use of pseudo > instructions and registers and unless you're well versed in its > quirks, can be

[9fans] 9front: Man pages of atomic functions

2016-02-03 Thread Tiago Natel
Hello folks, I'm looking for the man page of atomic functions (cas, ainc, adec, etc) of libc, but where it is? I found on the cat-v website, but not in 9front: http://man.cat-v.org/plan_9/2/atom cpu% man 2 atom man: no manual page cpu% man atom man: no manual page cpu% man 2 ainc man: no manual

Re: [9fans] FP register usage in Plan9 assembler

2016-02-03 Thread Steven Stallion
On Wed, Feb 3, 2016 at 9:24 AM, erik quanstrom wrote: > i think this is off the original point, but as to modifying the assmbler. > to add a new instruction, the linker, assembler and libmach need modification. > typically this is a matter of adding a line to each one for

Re: [9fans] FP register usage in Plan9 assembler

2016-02-03 Thread erik quanstrom
> WRT to drawbacks in the loader for writing assembly, one of the > biggest problems is merciless optimization that cannot be disabled on > a per translation-unit basis (we're using a loader, remember?) As an > example, it's damned near impossible to perform PC-relative branching > in the vector