11-03-2010
The original C compiler was written in the B language, the compiler for which was written in macro assembly, the assembler for which was written in machine code, using tools probably punched into paper tape, input with programs which were laboriously entered with hardware switches.
These days, computers don't have paper tape or hardware switches, so it's probably better to use someone else's compiler. Make your kernel able to load (or emulate) some kind of foreign executable, just as a bootstrap, ELF's pretty well documented. You could also try embedding some essential programs in the kernel itself.
Last edited by Corona688; 11-03-2010 at 03:21 AM..
9 More Discussions You Might Find Interesting
1. Programming
I recently loaded SuSE on my intel comp.
I am presently taking a walk down memory lane from my days at UofT.
I was fiddling round with cc and the gcc compilers.
I wrote a basic basic basic program .
I tried to compile it as I remember doing in Uni. The problem is that it can't find the header... (5 Replies)
Discussion started by: cantcatchme
5 Replies
2. Programming
I want to compile a c-language source file ( *.c ) under C++ compiler in the UNIX workstation. Is that compatable? (2 Replies)
Discussion started by: nomen
2 Replies
3. Programming
I am new to unix so please forgive ignorance. I am running openbsd-2.9 and need some help. All the software I run was added via the package system openbsd has. There have been times when I need an app. But it was not in the openbsd ports and or packages system. I usually just wait for it to show up... (1 Reply)
Discussion started by: Blunt_Killer
1 Replies
4. UNIX for Advanced & Expert Users
I have a problem.
How can I be sure that the binary currently in production is the binary originally produced by the compiler? I ask because recompiling the sources (ALL sources + stripping away the metadata: strip ...) does not give the same result.
I am pretty sure that I wasn't hacked!
... (5 Replies)
Discussion started by: aViking
5 Replies
5. UNIX for Dummies Questions & Answers
Hi,
we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier).
As a part of this i need to change the CFLAGS.
The xl c/c++ complier CFLAGS is
CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \
-qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies
6. Programming
To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first?
The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's...
Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies
7. UNIX for Dummies Questions & Answers
hi,
can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also
can we install sun cc compiler in AIX environment and vice versa.
and more ..is linux support cc compiler
regards
Ajay (3 Replies)
Discussion started by: ajaysahoo
3 Replies
8. UNIX for Dummies Questions & Answers
Hey,
I'm trying to install DigSig ( disec.sourceforge.net ) on my CentOS5 distro. I was following all the steps in the readme but it didn't work. So here's the output:
# ./digsig.init compile
make: Entering directory `/usr/src/kernels/2.6.18-194.32.1.el5-i686'
CC ... (2 Replies)
Discussion started by: disaster
2 Replies
9. UNIX for Advanced & Expert Users
Heyas
I'm currently trying to make a fresh build from scratch/source of FFMPEG.
This said, it brings quite a tail with it, so the use of a script was very obvious.
Anyway, i'm currently stuck at named package.
Lets ignore the tarball/download line, as the error is after.
Commands... (0 Replies)
Discussion started by: sea
0 Replies
uil(user cmd) uil(user cmd)
NAME
uil -- The user interface language compiler
SYNOPSIS
uil [options ] [file]
DESCRIPTION
The uil command invokes the UIL compiler. The User Interface Language (UIL) is a specification language for describing the initial state of
a user interface for a Motif application. The specification describes the objects (menus, dialog boxes, labels, push buttons, and so on)
used in the interface and specifies the routines to be called when the interface changes state as a result of user interaction.
file Specifies the file to be compiled through the UIL compiler.
options Specifies one or more of the following options:
-Ipathname
This option causes the compiler to look for include files in the directory specified if the include files have not been
found in the paths that already were searched. Specify this option followed by a pathname, with no intervening spaces.
-m Machine code is listed. This directs the compiler to place in the listing file a description of the records that it
added to the User Interface Database (UID). This helps you isolate errors. The default is no machine code.
-o file
Directs the compiler to produce a UID. By default, UIL creates a UID with the name a.uid. The file specifies the
filename for the UID. No UID is produced if the compiler issues any diagnostics categorized as error or severe. UIDs
are portable only across same-size machine architectures.
-s Directs the compiler to set the locale before compiling any files. The locale is set in an implementation-dependent
manner. On ANSI C-based systems, the locale is usually set by calling setlocale(LC_ALL, ""). If this option is not
specified, the compiler does not set the locale.
-v file Directs the compiler to generate a listing. The file specifies the filename for the listing. If the -v option is not
present, no listing is generated by the compiler. The default is no listing.
-w Specifies that the compiler suppress all warning and informational messages. If this option is not present, all mes-
sages are generated, regardless of the severity.
-wmd file Specifies a binary widget meta-language description file to be used in place of the default WML description.
RELATED INFORMATION
X(1) and Uil(3).
uil(user cmd)