Update with some comments from Zoltan
authorMiguel de Icaza <miguel@gnome.org>
Tue, 3 Aug 2004 14:36:14 +0000 (14:36 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 3 Aug 2004 14:36:14 +0000 (14:36 -0000)
svn path=/trunk/mono/; revision=31803

docs/mini-porting.txt

index 25be0a775665700e4144717a60be84635f938c60..7cf14775b1d1d659e99e864ceeab253515ef0733 100644 (file)
        we replace one or more instructions with others that perform
        better for the given architecture or CPU.
        
+* 64 bit support tips, by Zoltan Varga (vargaz@gmail.com)
+
+       For a 64-bit port of the Mono runtime, you will typically do
+       the following:
+
+               * need to use inssel-long.brg instead of
+                 inssel-long32.brg.
+
+               * need to implement lots of new opcodes:
+                      OP_I<OP> is 32 bit op
+                      OP_L<OP> and CEE_<OP> are 64 bit ops
+
+
+       The 64 bit version of an existing port might share the code
+       with the 32 bit port (for example SPARC/SPARV9), or it might
+       be separate (x86/AMD64).  
+
+       That will depend on the similarities of the two instructions
+       sets/ABIs etc.
+
+       The runtime and most parts of the JIT are 64 bit clean
+       at this point, so the only parts which require changing are
+       the arch dependent files.
+
+
+
+       
\ No newline at end of file