Hello, I'm teacher at the Université de Nice and intend to use Pascal as a supporting language in the course of basic algorithmic (first semester, first year, introduction to computer science, about 700 students). Last year I used Java in this course, a language too difficult for beginners and I've won a small war to obtain the return of Pascal. Some technicians are working to install the language on the student's PC, but I'm not a PC-user nor a true specialist in OS and I need to have a version of Pascal at home to prepare examples and problems. I own a portable PowerMac G4 running with the version 10.2.6 of MacOSX, I have imported the installer gpc-33d6.pkg from your page and runned it. Apparently, no problem. With TextEdit (I don't have any other) I've written the famous hello.pas and tried to compile it :
[hermes:~/Documents/Fac/Pascal] dominiqu% cat hello.pas program Hello (Output) ;
begin WriteLn('Hello, world !') end. [hermes:~/Documents/Fac/Pascal] dominiqu% gpc hello.pas /var/tmp//ccZQLUHj.s:56:Parameter error: expression out of range (parameter 4)
And I'm strictly unable to understand what is hapening.
1) could someone gives any help ?
2) I would need a syntactically adapted text editor, the simplest as possible (to install and use it) because I'm not a developper and I've a very few knowledge of the Unix system (strictly speaking, I'm not a computer scientist but a teacher firstly specialized in mathematics and linguistics) : what would be the better choice ?
Best regards, Dominique
PS : sorry for my bad use of English language.
DOMINIQUE THILLAUD wrote:
I'm teacher at the Université de Nice and intend to use Pascal as a supporting language in the course of basic algorithmic (first semester, first year, introduction to computer science, about 700 students). Last year I used Java in this course, a language too difficult for beginners and I've won a small war to obtain the return of Pascal.
Good to hear so !
[hermes:~/Documents/Fac/Pascal] dominiqu% gpc hello.pas /var/tmp//ccZQLUHj.s:56:Parameter error: expression out of range (parameter 4)
GPC produces assembly code which is then turned over to the assembler and it looks like you are having a problem with Apple's assembler "as". The assembler doesn't come installed with Apple's system software. What version are you running ? Type "as -v" on the Terminal command line (and afterwards control-C (sorry)).
[G4:~/gnu/testgpc/adriaan] adriaan% as -v Apple Computer, Inc. version cctools-435.obj~4, GNU assembler version 1.38
The latest assembler is included with Apple's ADC Development Tools CDs, but you can also join the ADC online program free of charge at https://connect.apple.com.
I have been working on a small assembler/linker distribution from my website, but it's quite a puzzel with the different licenses, all the needed files and source distributions that don't compile.
- I would need a syntactically adapted text editor, the simplest as
possible (to install and use it) because I'm not a developper and I've a very few knowledge of the Unix system (strictly speaking, I'm not a computer scientist but a teacher firstly specialized in mathematics and linguistics) : what would be the better choice ?
Maybe BBEdit, if it is still a free download, Peter and Gale know more about it than I do. Also, I am working on CodeWarrior integration (which has in my humble opinion the friendliest text editor (I have been working with it for over ten years now, day and night)). You can also try Apple's ProjectBuilder, which is included with the above ADC downloads.
Regards,
Adriaan van Os
Maybe BBEdit, if it is still a free download, Peter and Gale know more about it than I do. Also, I am working on CodeWarrior integration (which has in my humble opinion the friendliest text editor (I have been working with it for over ten years now, day and night)). You can also try Apple's ProjectBuilder, which is included with the above ADC downloads.
BBEdit is good, but no longer free (& hasn't been for a while). Its now $US179. There is a demo, but this run for 'x' number of days... (I forget what x is!)
I have good memories of the CodeWarrior editor too, but you pay for that too, but at least they have (had?!) a student version.
You can of course edit in ProjectBuilder (comes free on the developer's CD), but I think that all you can do with GPC and ProjectBuilder thus far... kind-of a heavy-weight solution and I feel BBEdit is the better editor. I does seem to "know" Pascal syntax either (either that, or its generic guesses are good enough).
Grant