Computer Science 301 - 2001

Programming Language Translation


Practical for Week 14, beginning 23 July 2001

PRACTICAL COVER SHEET

Group Members:

Surname: (PRINT CLEARLY)                     Mark Awarded

Student number: (PRINT CLEARLY)

Signature:



Surname: (PRINT CLEARLY)                     Mark Awarded

Student number: (PRINT CLEARLY)

Signature:


Surname: (PRINT CLEARLY)                     Mark Awarded

Student number: (PRINT CLEARLY)

Signature:



Surname: (PRINT CLEARLY)                     Mark Awarded

Student number: (PRINT CLEARLY)

Signature:


Other people with whom you collaborated (you need not give tutors' names):




Tutor's signature:

Copies of the prac sheet and this cover sheet are also available on the web site for the course, and spare copies of the cover sheet are available on top of the hand-in box.


Executable sizes (EXE files):

TASK 2

Turbo Pascal:    SIEVE.PAS                          SIEVE1.PAS

JPI Modula-2     SIEVE.MOD                          SIEVE1.MOD

TASK 3

Using cin and cout:

Borland C 3.1    SIEVE.CPP                          SIEVE1.CPP

Borland C 5.5    SIEVE.CPP                          SIEVE1.CPP

Microsoft C:     SIEVE.CPP                          SIEVE1.CPP

Using scanf and printf:

Borland C 3.1:   SIEVE.CPP                          SIEVE1.CPP

Borland C 5.5    SIEVE.CPP                          SIEVE1.CPP

Microsoft C:     SIEVE.CPP                          SIEVE1.CPP

TASK 6

Using scanf and printf after translation from Modula-2 by X2C

Borland C 3.1    SIEVE.C                            SIEVE1.C

Borland C 5.5    SIEVE.CPP                          SIEVE1.CPP

Microsoft C:     SIEVE.C                            SIEVE1.C

Object code (OBJ files)

TASK 2

JPI Modula-2     SIEVE.MOD                          SIEVE1.MOD

TASK 3

Using cin and cout:

Borland C 3.1    SIEVE.CPP                          SIEVE1.CPP

Borland C 5.5    SIEVE.CPP                          SIEVE1.CPP

Microsoft C:     SIEVE.CPP                          SIEVE1.CPP

Using scanf and printf:

Borland C 3.1:   SIEVE.CPP                          SIEVE1.CPP

Borland C 5.5    SIEVE.CPP                          SIEVE1.CPP

Microsoft C:     SIEVE.CPP                          SIEVE1.CPP

TASK 6

Using scanf and printf after translation from Modula-2 by X2C

Borland C 3.1    SIEVE.C                            SIEVE1.C

Borland C 5.5    SIEVE.CPP                          SIEVE1.CPP

Microsoft C:     SIEVE.C                            SIEVE1.C

Remember to comment on the differences, and on the maximum size of sieve
possible.


Home  © P.D. Terry