BLISS

From Wikipedia, the free encyclopedia

Remove ads

BLISS merupakan bahasa pengaturcaraan sistem yang dimajukan di Universiti Carnegie Mellon oleh W. A. Wulf, D. B. Russell, dan A. N. Habermann sekitar 1970. Ia kemungkinannya bahasa pengaturcaraan sistem paling terkenal sehingga C muncul beberapa tahun kemudiannya. Semenjak itu, C berkembang dan BLISS lesap begitu sahaja. (Semasa C baru bermula, beberapa projek dalaman Bell Labs sedang berdebat mengenai kekuatan BLISS vs. C.)

Remove ads

Contoh kod sumber

Contoh berikut diambil dari buku Panduan Mengaturcara Bliss (Bliss Programming Manual):

MODULE E1 (MAIN = CTRL) =
BEGIN
FORWARD ROUTINE

CTRL,
STEP;

ROUTINE CTRL =
!+
! This routine inputs a value, operates on it, and
! then outputs the result.
!-

BEGIN
EXTERNAL ROUTINE
GETNUM, ! Input a number from terminal
PUTNUM; ! Output a number to terminal
LOCAL
X, ! Storage for input value
Y; ! Storage for output value
GETNUM(X);
Y = STEP(.X);
PUTNUM(.Y)
END;

ROUTINE STEP(A) =
!+
! This routine adds 1 to the given value.
!-

(.A+1);

END
ELUDOM

Remove ads

Versi

  • BLISS-10
  • BLISS-11 - a cross compiler for the PDP-11
  • BLISS-16
  • BLISS-16C - DEC version of BLISS-11
  • BLISS-32
  • BLISS-36
  • BLISS-64
  • Common BLISS - portable subset

Rujukan

  • Wulf, W. A.; Russell, D. B.; Habermann, A. N. (1971). BLISS: A Language for Systems Programming. CACM 14(12):780-790, Dec 1971
  • Wulf, W. A.; Johnson, R. K.; Weinstock, C. B.; Hobbs, S. O.; Geschke, C. M. (1975). The Design of an Optimizing Compiler. New York: Elsevier, ISBN 0-444-00158-1.

Pautan luar

Beban terima

Remove ads
Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads