Compiler Target Code

Cerrado Publicado Nov 12, 2003 Pagado a la entrega
Cerrado Pagado a la entrega

Target code for the compiler will be a subset of C that emulates a 1-1/2 address register architecture machine. 1)Memory and registers will be emulated with global arrays. 2)Simple assignments of the form (type) target = source; where at most one of target and source is memory 3)All arithmetic operations will be reduced to operator assignments in which the left side is a "register" (type) reg[i] op= value; /* cast is optional if needed to get correct type in storage */ The value may be a register, memory location, or literal 4) Control will be implemented with simple ifs and gotos if (reg) goto label; if (reg CMP 0) goto label; /* where CMP is one of <, >, <=, >=, !=, == */ goto label; 5)Function call - return implementation will be as follows bound functions with header and block as in C; function headers using C syntax with return type void and no parameters void f() { ... } arguments are passed in in registers 0, 1, 2, .... (There will be enough registers.) return value, if there is one, is placed in reg[0] call function with name(); 6) Run-time support library: -You may use any functions in the C/C++ library or write your own for I/O and other support, but not to replace operations that can be done with the code specified above -Strings can be processed as strings in the target code

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

windows xp

Programación en C Ingeniería Microsoft MySQL PHP Arquitectura de software Verificación de software Windows Desktop

Nº del proyecto: #3009169

Sobre el proyecto

1 propuesta Proyecto remoto Activo Feb 8, 2004

1 freelancer está ofertando el promedio de $34 para este trabajo

esegura

See private message.

$34 USD en 4 días
(22 comentarios)
4.8