Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
compiled code
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 27 of 27 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Frode Vatvedt Fjeld  
View profile  
 More options Sep 11 2002, 8:27 pm
Newsgroups: comp.lang.lisp
From: Frode Vatvedt Fjeld <fro...@acm.org>
Date: Thu, 12 Sep 2002 02:27:13 +0200
Local: Wed, Sep 11 2002 8:27 pm
Subject: Re: compiled code

Matthew Danish <mdan...@andrew.cmu.edu> writes:
> But how does it know that the result is a fixnum?

Agreed. That looks to me to be a false conclusion by the
compiler. Unless the (safety 0) somehow makes it okay.

--
Frode Vatvedt Fjeld


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Sep 11 2002, 10:26 pm
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 12 Sep 2002 02:26:48 +0000
Local: Wed, Sep 11 2002 10:26 pm
Subject: Re: compiled code
* Matthew Danish
| Very nice output =)  But how does it know that the result is a fixnum?

  Allegro CL has a compiler optimization switch that makes declared fixnums
  remain fixnums.  It defaults to true only when speed is 3 and safety 0.  If
  you turn it off, the same Common Lisp code produces more machine code:

   0: c1 f8 02    sarl  eax,$2
   3: c1 fa 02    sarl  edx,$2
   6: 03 c2       addl  eax,edx
   8: ff a7 87 00 jmp   *[edi+135]      ; sys::fixnum-or-bignum
      00 00

  The shifts convert from the fixnum representation (two type tag bits) to the
  machine integer and the tail-called function will shift the sum back if there
  is space or cons a bignum if not.

--
Erik Naggum, Oslo, Norway

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »