From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22149 invoked by alias); 28 Aug 2009 01:59:43 -0000 Received: (qmail 21742 invoked by uid 22791); 28 Aug 2009 01:59:42 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ey-out-1920.google.com (HELO ey-out-1920.google.com) (74.125.78.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Aug 2009 01:59:34 +0000 Received: by ey-out-1920.google.com with SMTP id 4so99940eyg.0 for ; Thu, 27 Aug 2009 18:59:31 -0700 (PDT) Received: by 10.210.135.7 with SMTP id i7mr2115547ebd.6.1251424771742; Thu, 27 Aug 2009 18:59:31 -0700 (PDT) Received: from ?192.168.2.99? (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id 28sm984702eye.4.2009.08.27.18.59.30 (version=SSLv3 cipher=RC4-MD5); Thu, 27 Aug 2009 18:59:31 -0700 (PDT) Message-ID: <4A973D3A.3010703@gmail.com> Date: Fri, 28 Aug 2009 01:59:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Doug Evans CC: cgen@sourceware.org Subject: Re: new do-count rtl References: <4A95669B.8050900@sebabeach.org> <4A96FC2B.8010605@sebabeach.org> In-Reply-To: <4A96FC2B.8010605@sebabeach.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00080.txt.bz2 Doug Evans wrote: > Doug Evans wrote: >> Hi. >> >> What do folks think of adding a new rtl for iterating a specified >> number of times. >> >> Something like >> >> (do-count nr-times iter-var expr1 [expr2 ...]) >> >> For now the result would always be void, and iter-var would always >> have mode INT. >> The set of expressions is performed nr-times times and iter-var has >> values 0 ... nr-times - 1. >> >> ? >> > > Checked in. I don't speak scheme or guile, but I'm learning, so forgive me in advance if this is a dumb question: Does this differ from using a .map on an .iota when generating a parameter to an rtl s-expr? cheers, DaveK