Logo GenDocs.ru

Поиск по сайту:  


Загрузка...

Курсовой проект - Компилятор Lisp в промежуточный код RISC-архитектуры - файл help.txt


Загрузка...
Курсовой проект - Компилятор Lisp в промежуточный код RISC-архитектуры
скачать (264.3 kb.)

Доступные файлы (4):

euclide.ss
help.txt4kb.21.12.2008 15:44скачать
sglc.py
method.pdf52kb.10.12.2008 14:05скачать

help.txt


This programme is Simple GNU Lisp Compiler (SGLC) has made  by ILYA NIKITIN
It compile lisp code to assembler of RISC Virtual Machine.

USAGE:
        sglc  [INPUT FILE NAME]   [OUTPUT FILE NAME]
        
Usage in different cases:  

        sglc  < InputStream 
  
                You can chanel STDIN with programme to THIS.
                This way you get the asm code chaneled to STDOUT
                        
        sglc   (INPUT FILE NAME)  >    OutputStream

                You can type name of input file with programme.
                This way you get the asm code chaneled to STDOUT
   
   
        sglc  (INPUT FILE NAME)   (OUTPUT FILE NAME)
    
                You can type name of input file with programme 
                and name of output file in which you want to have
                asm code.
    
        sglc --help
        
                You'll see this text
                
                
ABOUT RISC:

The acronym RISC (pronounced risk), for reduced instruction set computing, 
represents a CPU design strategy emphasizing the insight that simplified 
instructions which "do less" may still provide for higher performance if this 
simplicity can be utilized to make instructions execute very quickly. 
Many proposals for a "precise" definition have been attempted, 
and the term is being slowly replaced by the more descriptive load-store 
architecture.

RISC Mashine has many registers. There are not memory- and data-argumented 
commands in the RISC Mashine. It works only with registers.


ABOUT PROGRAMMING:

1) You can use in lisp code:

        a) Base operations:
                                cond
                                lambda
                                define

        Use define only like			"(define f (lambda  (x y)  (+ ( * 2 x ) y)))"
        OR                        		"(define pi  3.1415926535897931)"
        Such phrase like     			"(define ( f x y)  (+ ( * 2 x ) y) )"
        will be mistake and return error
        
        b) Arithmetic operations:
                                +
                                -
                                *
                                /
                                remainder
        c) Boolean operations:
                                and
                                or
                                not
                                >
                                <
                                =
        d) Comments:
                               ; this is comment

2) And we use in asm code:

        add ,  
        and ,  
        branch 

Поиск по сайту:  

© gendocs.ru
При копировании укажите ссылку.
обратиться к администрации
Рейтинг@Mail.ru