Re: [Seed7-users] beginners question for seed7
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Thomas M. <tho...@gm...> - 2011-01-07 09:37:56
|
On Mon, 3 Jan 2011 10:44:13 +0100, "Achim Rogalski" <po...@24...> wrote: > For a first test I have copied the Hello World Programm in a .sd7 file. > > On the seed7-homepage I could read that mk_mingw.mak together with > ming32-make is nessessary > for the Comand line window. > But before I have to compile the interpreter. I guess that you already downloaded a Seed7 *.tgz package and that a 'seed7' directory is somewhere on your computer now. > So I select the src folder where the mk_mingw.mak file exist. And then ? > What have I to do to see "Hello World" ? The 'src' folder contains the file 'read_me.text'. This file contains instructions to compile the interpreter. The chapter 'COMPILING UNDER WINDOWS WITH GCC' describes what to do: When gcc and mingw32-make from MinGW are installed use a console, go to the 'src' directory and type: copy mk_mingw.mak makefile mingw32-make depend mingw32-make If you do several compilation attempts in succession you need to do mingw32-make clean before you start a new attempt. When the compilation succeeds hi.exe is copied into the 'prg' directory. You can go to the 'prg' directory and type: hi hello This should write hello world A comprehensive test of the 'hi' interpreter can be done in the 'prg' directory with the command: hi chk_all This should write something like: HI INTERPRETER Version 4.5.6809 Copyright (c) 1990-2010 Thomas Mertes 262 syntax.s7i 3715 seed7_05.s7i 130 utf8.s7i 131 shell.s7i 294 chk_all.sd7 4532 lines total 226600 lines per second 2130634 bytes compiling the compiler - okay chkint - okay chkstr - okay chkprc - okay chkbig - okay chkbool - okay chkset - okay chkexc - okay Compiling a Seed7 program can be done e.g. with: hi comp hello This produces the executable 'hello.exe'. Executables produced by the Seed7 compiler can be used anywhere, since they are statically linked (no Seed7 dll required). BTW: I released also a binary version for windows, which contains already a compiled interpreter. See: http://sourceforge.net/projects/seed7/files/bin/ When you succeed in compiling the Seed7 interpreter you should prefer your compiled version over the binary version. The binary version uses relative paths to configure the Seed7 compiler. When you compile the Seed7 interpreter yourself the Seed7 compiler is configured with absolute paths (which usually is better unless you move the Seed7 directory around afterwards). Greetings Thomas Mertes -- Seed7 Homepage: http://seed7.sourceforge.net Seed7 - The extensible programming language: User defined statements and operators, abstract data types, templates without special syntax, OO with interfaces and multiple dispatch, statically typed, interpreted or compiled, portable, runs under linux/unix/windows. -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail |