Number: 2066

Date:  5-Sep-84 17':52':41

Submitter: Masinter

Source: vanMelle

Subject: compiler not always emitting RPLCONS opcode

Assigned To: 

Attn: Masinter

Status: Open

In/By: 

Problem Type: Performance

Impact: Minor

Difficulty: Easy

Frequency: Intermittent

Priority: Unlikely

System: Language Support

Subsystem: Compiler, Code Format

Machine: 

Disk: 

Lisp Version: 2 JUN 1982 1616-PDT

Source Files: 

Microcode Version: 

Memory Size: 

File Server: 

Server Software Version: 

Disposition: 

Description: '
Date':  2 JUN 1982 1616-PDT'
From': VANMELLE'
Subject': compiler nits'
To':   Masinter'
cc':   vanMelle'
'
Some anomalies in RPLCONS':'
'
←C (CDR (FRPLACD X (CONS)))'
'
   *DUMMY-COMPILED-FUNCTION*()     LAMBDA'
      <X> COPY [CONS 0] [RPLACD] POP [CDR] RETURN'
'
   *DUMMY-COMPILED-FUNCTION*'
   name table':'
   (F 0 X)'
   code length':  argtype': 0'
   (FVAR 0) COPY ''NIL ''NIL CONS RPLACD POP CDR RETURN -X-'
'
'
←C (CDR (FRPLACD X (CONS NIL]'
'
   *DUMMY-COMPILED-FUNCTION*()     LAMBDA'
      <X> COPY ''NIL [\RPLCONS] POP [CDR] RETURN'
'
   *DUMMY-COMPILED-FUNCTION*'
   name table':'
   (F 0 X)'
   code length':  argtype': 0'
   (FVAR 0) COPY ''NIL RPLCONS POP CDR RETURN -X-'
'
'
Besides, shouldn''t this just compile as':'
'
<X> ''NIL [\RPLCONS] [CDR] RETURN    ?'
'
	Bill'
'


Workaround: 

Test Case: 

Edit-By: 

Edit-Date: