Author: leo Date: Wed Nov 2 11:12:47 2005 New Revision: 9718 Modified: trunk/docs/debug.pod trunk/docs/intro.pod trunk/docs/overview.pod Log: fix some pods WRT 32 registers
Modified: trunk/docs/debug.pod ============================================================================== --- trunk/docs/debug.pod (original) +++ trunk/docs/debug.pod Wed Nov 2 11:12:47 2005 @@ -135,7 +135,8 @@ Step 7: Step into the JITed code gdb> s At this point, you can step through the instructions, or print out the various -Parrot registers. C<gdb> will know about I0-I31, N0-N31, S0-S31, and P0-P31. +Parrot registers. FIXME: C<gdb> will know about I0-I31, N0-N31, S0-S31, and P0-P31. + WARNING: Stepping too far Modified: trunk/docs/intro.pod ============================================================================== --- trunk/docs/intro.pod (original) +++ trunk/docs/intro.pod Wed Nov 2 11:12:47 2005 @@ -69,7 +69,7 @@ by compilers. It hides away some low-lev are passed to functions. PASM (Parrot Assembly) is a level below PIR - it is still human readable/writable and can be generated by a compiler, but the author has to take care of details such as calling conventions and register -spilling. PAST (Parrot Abstract Syntax Tree) enables Parrot to accept an +allocation. PAST (Parrot Abstract Syntax Tree) enables Parrot to accept an abstract syntax tree style input - useful for those writing compilers. All of the above forms of input are automatically converted inside Parrot to @@ -91,9 +91,10 @@ more. The Parrot VM is register based. This means that, like a hardware CPU, it has a number of fast-access units of storage called registers. There are 4 types of register in Parrot: integers (I), numbers (N), strings (S) and PMCs (P). There -are 32 of each of these, named I0..I31, N0..N31, etc. Integer registers are the +are N of each of these, named I0,I1,..N0.., etc. Integer registers are the same size as a word on the machine Parrot is running on and number registers also map to a native floating point type. +The amount of registers needed is determined per subroutine at compile-time. =head2 PMCs @@ -202,8 +203,7 @@ register and then use that register with .end Here we have stated exactly which register to use. However, by replacing C<S0> -with C<$S0> we can delegate the choice of which register to use to Parrot, and -it will take care of any register spilling that needs to be done for us. It is +with C<$S0> we can delegate the choice of which register to use to Parrot. It is also possible to use an C<=> notation instead of writing the C<set> instruction. Modified: trunk/docs/overview.pod ============================================================================== --- trunk/docs/overview.pod (original) +++ trunk/docs/overview.pod Wed Nov 2 11:12:47 2005 @@ -31,7 +31,7 @@ the relatively slight volume of informat stack machines. To be more specific about the software CPU, it will contain a large number of -registers. The current design provides for four groups of 32 registers; each +registers. The current design provides for four groups of N registers; each group will hold a different data type: integers, floating-point numbers, strings, and PMCs. (Parrot Magic Cookies, detailed below.)
