From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 20 May 2005 17:53:10 +0300 From: Sergey Reva Message-ID: <5114550406.20050520175310@mail.ru> To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [9fans] return vlong Topicbox-Message-UUID: 4dbc5838-ead0-11e9-9d60-3106f5b1d025 Hello Fans, Where I can get information about Plan 9 C call conversion. Especially, how return uvlong value? TEXT rdtsc(SB),0,$0 BYTE $0x0F BYTE $0x31 MOVL .ret+0(FP),BX MOVL AX,(BX) MOVL DX,4(BX) RET I borrow last 3 lines (not including RET) from C compiler output (-S flag), and seems it work (CPU freq calculation) but I not understand what is '.ret', where it's placed. Sergey -- http://rs-rlab.narod.ru mailto:rs_rlab@mail.ru