Once again syncing after too long an absence
[p5sagit/p5-mst-13.2.git] / README.epoc
CommitLineData
0e06870b 1If you read this file _as_is_, just ignore the funny characters you
2see. It is written in the POD format (see pod/perlpod.pod) which is
3specially designed to be readable as is.
4d2c4e07 4
0e06870b 5=head1 NAME
6
7README.epoc - Perl for EPOC
4d2c4e07 8
0e06870b 9=head1 SYNOPSIS
10
11Perl 5 README file for the EPOC operating system.
12
13=head1 INTRODUCTION
4d2c4e07 14
3a2f06e9 15EPOC is a OS for palmtops and mobile phones. For more informations look at:
16http://www.symbian.com/
4d2c4e07 17
22d4bb9c 18This is a port of perl to EPOC. It runs on the Psion Series 5, 5mx,
195mx Pro, Psion Revo and on the Ericson M128. I have no report about
20the Psion Netbook or the S7. For information about this hardware
21please refer to http://www.psion.com.
4d2c4e07 22
0e06870b 23=head1 INSTALLING PERL ON EPOC
4d2c4e07 24
3a2f06e9 25You will need ~4MB free space in order to install and run perl.
ae2d1787 26
3a2f06e9 27Install perl.sis on the EPOC machine (most likely a PSION Series 5,
285mx). If you do not know how to do that, you are on your own.
ae2d1787 29
3a2f06e9 30Perl itself and its standard library are using 2.5 MB disk space. I
31left out unicode support modules and modules which will not work with
32this version. (For details look into epoc/createpkg.pl). If you like
33to use them, you are free to copy them from a current perl release.
ae2d1787 34
22d4bb9c 35Get ESHELL from symbian:
36http://developer.epocworld.com/downloads/progs/Eshell.zip
ae2d1787 37
38Now you can enter: perl -de 0 in order to run the perl debugger. If
3a2f06e9 39you are leaving perl, you get into the system screen. You have to
22d4bb9c 40switch back manually to ESHELL. When perl is running, you will see
3a2f06e9 41a task with the name STDOUT in the task list.
42
0e06870b 43=head1 USING PERL ON EPOC
44
45=head2 IO Redirection
ae2d1787 46
47You can redirect the output with the UNIX bourne shell syntax (this is
48built into perl rather then eshell) For instance the following command
49line will run the script test.pl with the output redirected to
50stdout_file, the errors to stderr_file and input from stdin_file.
51
52perl test.pl >stdout_file <stdin_file 2>stderr_file
53
0e06870b 54Alternatively you can use 2>&1 in order to add the standard error
3a2f06e9 55output to stdout.
56
0e06870b 57=head2 PATH Names
ae2d1787 58
22d4bb9c 59ESHELL looks for executables in ?:/System/Programs. The SIS file
60installs perl in this special folder directory. The default drive and
61path are the same as folder the executable resides. The EPOC
62filesystem is case-preserving, not case-sensitive.
63
64EPOC uses the ?: syntax for establishing a search order: First in C: (RAM),
65then on D: (CF Card) and last in Z: (ROM).
66
67The perl @INC search path is now implemented with '?:'. Your perl
68executable can now live on a different drive than the perl library or
69even your scripts.
ae2d1787 70
22d4bb9c 71ESHELL paths have to be written with backslashes '\', file arguments
72to perl with slashes '/'. Remember that I/O redirection is done
73internally in perl, so please use slashes for redirects.
ae2d1787 74
22d4bb9c 75perl.exe C:/test.pl >C:/output.txt
4d2c4e07 76
3a2f06e9 77You can automatically search for file on all EPOC drives with a ? as
22d4bb9c 78the driver letter. For instance ?:\a.txt searches for C:\a.txt,
3a2f06e9 79D:\b.txt (and Z:\a.txt).
4d2c4e07 80
0e06870b 81=head2 Editors
4d2c4e07 82
22d4bb9c 83A suitable text-editor can be downloaded
84from symbian http://developer.epocworld.com/downloads/progs/Editor.zip
85
0e06870b 86=head2 Features
4d2c4e07 87
22d4bb9c 88The built-in function EPOC::getcwd returns the current directory.
3a2f06e9 89
0e06870b 90=head2 Restrictions
4d2c4e07 91
22d4bb9c 92Features are left out, because of restrictions of the POSIX support in
93EPOC:
4d2c4e07 94
0e06870b 95=over 4
96
97=item *
98
99backquoting, pipes etc.
100
101=item *
102
103system() does not inherit ressources like: file descriptors,
104environment etc.
105
106=item *
107
108signal, kill, alarm. Do not try to use them. This may be
109impossible to implement on EPOC.
110
111=item *
112
113select is missing.
114
115=item *
ae2d1787 116
0e06870b 117binmode does not exist. (No CR LF to LF translation for text files)
ae2d1787 118
0e06870b 119=item *
ae2d1787 120
0e06870b 121EPOC does not handle the notion of current drive and current
122directory very well (i.e. not at all, but it tries hard to emulate
123one) See PATH.
ae2d1787 124
0e06870b 125=item *
ae2d1787 126
0e06870b 127You need the shell eshell.exe in order to run perl.exe and supply
128it with arguments.
4d2c4e07 129
0e06870b 130=item *
4d2c4e07 131
0e06870b 132Heap is limited to 4MB.
4d2c4e07 133
0e06870b 134=back
135
136=head2 Compiling Perl 5 on the EPOC cross compiling environment
4d2c4e07 137
3a2f06e9 138Sorry, this is far too short.
4d2c4e07 139
0e06870b 140=over 4
141
142=item *
143
144You will need the C++ SDK from http://developer.epocworld.com/.
145
146=item *
147
148You will need to set up the cross SDK from
149http://www.science-computing.de/o.flebbe/sdk
150
151=item *
152
153You may have to adjust config.sh (cc, cppflags) for your epoc
154install location.
155
156=item *
157
158You may have to adjust config.sh for your cross SDK location
4d2c4e07 159
0e06870b 160=item *
4d2c4e07 161
0e06870b 162Get the Perl sources from your nearest CPAN site.
4d2c4e07 163
0e06870b 164=item *
4d2c4e07 165
0e06870b 166Unpack the sources.
ae2d1787 167
0e06870b 168=item *
ae2d1787 169
0e06870b 170Build a native perl from this sources...
22d4bb9c 171
3a2f06e9 172 cp epoc/* .
f83d2536 173 ./Configure -S
22d4bb9c 174 make perl.a
3a2f06e9 175 cp miniperl.native miniperl
176 make perl
22d4bb9c 177 make ext/Errno/pm_to_blib
f83d2536 178 perl link.pl perlmain.o lib/auto/DynaLoader/DynaLoader.a \
22d4bb9c 179 lib/auto/Data/Dumper/Dumper.a \
3a2f06e9 180 lib/auto/File/Glob/Glob.a lib/auto/IO/IO.a \
22d4bb9c 181 lib/auto/Socket/Socket.a \
182 lib/auto/Fcntl/Fcntl.a lib/auto/Sys/Hostname/Hostname.a \
183 perl.a `cat ext.libs`
3a2f06e9 184 perl createpkg.pl
4d2c4e07 185
22d4bb9c 186 wine G:/bin/makesis perl.pkg perl.sis
4d2c4e07 187
0e06870b 188=back
4d2c4e07 189
0e06870b 190=head1 SUPPORT STATUS
4d2c4e07 191
22d4bb9c 192I'm offering this port "as is". You can ask me questions, but I can't
193guarantee I'll be able to answer them.
0e06870b 194
195=head1 AUTHOR
196
197Olaf Flebbe <o.flebbe@gmx.de>
198http://members.linuxstart.com/~oflebbe/perl/perl5.html
199
200=head1 LAST UPDATE
201
2022000-09-18
203
204=cut