Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is ossiz in this old C compiler?

Tags:

c

keyword

I was looking at one of the first compilers of c, written by dmr himself. It was written in the early 1970's, so obviously the syntax is very different. In this file, what does ossiz mean?

ossiz 250;

By the way, is there any helpful article or manual on this sort of thing (older c syntax)?

like image 377
human Avatar asked Dec 20 '21 11:12

human


People also ask

What is the latest C compiler?

The current version of GCC is 9.2, which was released on August 12, 2019.

Which compiler is used in C?

There are many compilers for C, but we will focus on a free open source version called the Gnu C compiler. (Actually we will use the Gnu C++ compiler, but all C programs compile using this compiler).

Is there an official C compiler?

No, there is no compiler provided by the C standard and thus no way to install it. You have to use a third-party compiler. The most common for Linux and macOS are called GCC (GNU Compiler Collection) and Clang.

How many compilers are there in C?

There are over 50 compilers for C like ICC by Intel to GNU GCC by GNU Project. The focus of having multiple compilers is to optimize the compiled C code for specific hardware and software environments.

What is a compiler in C++?

A Compiler (C or C++ Compiler, etc.) is a computer program that converts one programming language (i.e. C/C++ codes) written with text into executable machine code with a linker.

What is the best compiler for Objective C?

CLANG is considered to be a production-quality C, Objective-C, C++, and Objective-C++ compiler when targeting X86-32, X86-64, and ARM. It is a new C/C++ compiler standard (C++98, C++11, C++17, C++20, C++23 ..) supported by The LLVM Compiler Infrastructure Project, and has been a default compiler in recent years for most C/C++ compilers.

Are there any C compilers that have found users?

Following is the ultimate list of C compilers that found some users: Compiler Release Developer In Wide Use Users CLang 2007 LLVM Developers Yes General XL C 2007 IBM No IBM systems HP-C 2012 HP No HP systems AOCC 2017 AMD Yes AMD systems 24 more rows ...

What is the history of compiler development?

Some compilers were developed in 1970s (PCCM by Bell Labs) while the recent ones are from 2017 (AOCC by AMD). Some compilers like LabWindows are used by a specific and small group of developers.


1 Answers

Just like in B, it's a global variable definition with initialization. In modern C it would be:

int ossiz = 250;

Also: https://github.com/mortdeus/legacy-cc/blob/2b4aaa34d3229616c65114bb1c9d6efdc2a6898e/last1120c/c10.c#L462

like image 80
KamilCuk Avatar answered Oct 25 '22 18:10

KamilCuk