[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rtl meta information

From: Andy Wingo
Subject: Re: rtl meta information
Date: Thu, 24 Jan 2013 13:24:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)


On Sat 01 Dec 2012 00:39, Stefan Israelsson Tampe <address@hidden> writes:

> (define-macro-assembler (toplevel asm dst sym)
>   (let ((s (emit-non-immediate asm sym))
>         (d (emit-non-immediate asm (current-module)))
>         (v (intern-constant asm 0 #:slot #t)))
>     (emit-toplevel-ref asm dst v d s)))

This intern-constant is really a hack.  See the patch I pushed to
wip-rtl for a more robust solution.

> (define-macro-assembler (begin-program asm label . f-meta)    
>   (emit-label asm label) 
>   (let ((meta (make-meta label #f (asm-start asm) #f)))
>     (set-asm-meta! asm (cons meta (asm-meta asm)))
>     (emit asm 0)
>     (emit asm 0)
>     (emit asm 0) ;;Mark that we have a meta prefix

I don't want to include metadata in the text of the procedure -- it
should go in a different ELF section.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]