From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: wip-rtl: macro-instructions, constants loading Date: Wed, 06 Jun 2012 11:07:47 +0200 Message-ID: <87ehpslsf0.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1338973693 13828 80.91.229.3 (6 Jun 2012 09:08:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2012 09:08:13 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 06 11:08:10 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ScCDo-0006kL-ON for guile-devel@m.gmane.org; Wed, 06 Jun 2012 11:08:08 +0200 Original-Received: from localhost ([::1]:56494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScCDo-0001jp-E8 for guile-devel@m.gmane.org; Wed, 06 Jun 2012 05:08:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScCDi-0001j0-3o for guile-devel@gnu.org; Wed, 06 Jun 2012 05:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScCDa-0004pM-P1 for guile-devel@gnu.org; Wed, 06 Jun 2012 05:08:01 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:64598 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScCDa-0004p2-G8 for guile-devel@gnu.org; Wed, 06 Jun 2012 05:07:54 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4BFBE8B5D for ; Wed, 6 Jun 2012 05:07:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:mime-version:content-type; s=sasl; bh=/ qAY5CC7t5CrluwQnAOZG5Llj2c=; b=PGHy8heutqxeF77ekLXsGgB6G9vH4u5vF ttu571Ep/jJMN0ACizDAr2WZcWOy8s0dpRz98CYI/2ESlDPJe11L9ZkEge+C8tyF h7XGXNhGjBDk1ffMsY8Hfr4rzEGBVAfSgolpTZE54MlkHIBqjE+ArZJIiYhoEKMP qb7sCK9+xw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=sasl; b=rQz xmaJ2J/FZFeCcfa6DvosJAtubyufG5Ixa/Ct9HC7ASN+08dGUqnyUKhkIuisIG3l alkZ1VLoiC1DKH+q7YQUclqxjhWR9FRXV0cVh+o7RKvu63adzZwpY2cABqIBhLIE iGFm62SooyEA3H6zCuUvnKY/FTKeJpgQ6TSIjjUE= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 449278B5C for ; Wed, 6 Jun 2012 05:07:51 -0400 (EDT) Original-Received: from badger (unknown [85.50.243.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id A28D08B5B for ; Wed, 6 Jun 2012 05:07:50 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Pobox-Relay-ID: 17A18B58-AFB7-11E1-9EF7-E981AF15ED39-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14561 Archived-At: Another brief note before I go off to do other things. I reworked the interface of the assembler to allow for macro-instructions: instructions that don't correspond directly to a particular opcode. There are new macro-instructions for the function prologue, loading constants of any kind, initializing slots of constants, and emitting labels. The basic instructions like make-non-immediate now take labels again instead of constants. With this, I was able to wire up the init procedure to relocate the constants. I've added a test case, and things are working for most kinds of values. Notable exceptions are arrays, uniform and otherwise. OK, off to other things! Andy -- http://wingolog.org/