Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

231 lines
6.4 KiB

  1. If you read this file _as_is_, just ignore the funny characters you
  2. see. It is written in the POD format (see pod/perlpod.pod) which is
  3. specially designed to be readable as is.
  4. =head1 NAME
  5. README.epoc - Perl for EPOC
  6. =head1 SYNOPSIS
  7. Perl 5 README file for the EPOC operating system.
  8. =head1 INTRODUCTION
  9. EPOC is a OS for palmtops and mobile phones. For more informations look at:
  10. http://www.symbian.com/
  11. This is a port of perl to EPOC. It runs on ER5 machines: Psion 5mx,
  12. 5mx Pro, Psion Revo and on the Ericson M128. I have no report about
  13. the Psion Netbook or the S7. It runs on ER3 Hardware (Series 5
  14. classic), too. For more information about this hardware please refer
  15. to http://www.psion.com.
  16. Vendors which like to have support for their devices are free to send
  17. me a sample.
  18. =head1 INSTALLING PERL ON EPOC
  19. You can download a ready-to-install version from
  20. http://www.science-computing.de/o.flebbe/perl. You may find other
  21. versions with some CPAN modules included at this location.
  22. You will need at least 4MB free space in order to install and run
  23. perl.
  24. Install perl.sis on the EPOC machine. If you do not know how to do
  25. that, consult your PsiWin documentation.
  26. Perl itself and its standard library is using 2.9 MB disk space.
  27. Unicode support and some other modules are left out. (For details,
  28. please look into epoc/createpkg.pl). If you like to use these modules,
  29. you are free to copy them from a current perl release.
  30. =head1 STARTING PERL ON EPOC
  31. For ER5 machines, you can get the software Perlstart
  32. http://www.science-computing.de/o.flebbe/perl. It contains file
  33. recognizers for files with the extension .pl and .pm. With it you can
  34. start perl with a double click on the camel icon. Be sure to configure
  35. the perl installation drive first. You can even provide a script with
  36. a special commandline, if needed.
  37. Alternativly you can get ESHELL from symbian:
  38. http://developer.epocworld.com/downloads/progs/Eshell.zip
  39. Running ESHELL you can enter: perl -de 0 in order to run the perl
  40. debugger. If you are leaving perl, you get into the system screen. You
  41. have to switch back manually to ESHELL. When perl is running, you will
  42. see a task with the name STDOUT in the task list.
  43. If you have a ER3 machine (i.e. a PSION 5), you may have to supply the
  44. full path to the perl executable C:\system\programs\perl.exe.
  45. If you need to set the current directory of perl, please use the
  46. command line switch '-x'. See L<perlrun> for details.
  47. =head1 STOPPING PERL ON EPOC
  48. You can stop a running perl process in the task list by closing the
  49. application `STDOUT'. You cannot stop a running perl process if it has
  50. not written anyting to stdout or stderr! Be very cautious with I/O
  51. redirection. You will have to reboot the PDA!
  52. =head1 USING PERL ON EPOC
  53. =head2 I/O Redirection
  54. You can redirect the output with the UNIX bourne shell syntax (this is
  55. built into perl rather then eshell) For instance the following command
  56. line will run the script test.pl with the output redirected to
  57. stdout_file, the errors to stderr_file and input from stdin_file.
  58. perl test.pl >stdout_file <stdin_file 2>stderr_file
  59. Alternatively you can use 2>&1 in order to add the standard error
  60. output to stdout.
  61. =head2 PATH Names
  62. ESHELL looks for executables in ?:/System/Programs. The SIS file
  63. installs perl in this special folder directory. The default drive and
  64. path are the same as folder the executable resides. The EPOC
  65. filesystem is case-preserving, not case-sensitive.
  66. The EPOC estdlib uses the ?: syntax for establishing a search order:
  67. First in C: (RAM), then on D: (CF Card, if present) and last in Z:
  68. (ROM). For instance ?:\a.txt searches for C:\a.txt, D:\a.txt (and
  69. Z:\a.txt)
  70. The perl @INC search path is implemented with '?:'. Your perl
  71. executable can live on a different drive than the perl library or even
  72. your scripts.
  73. ESHELL paths have to be written with backslashes '\', file arguments
  74. to perl with slashes '/'. Remember that I/O redirection is done
  75. internally in perl, so please use slashes for redirects.
  76. perl.exe C:/test.pl >C:/output.txt
  77. =head2 Editors
  78. A suitable text editor can be downloaded from symbian
  79. http://developer.epocworld.com/downloads/progs/Editor.zip
  80. =head2 Features
  81. The built-in function EPOC::getcwd returns the current directory.
  82. =head2 Restrictions
  83. Features are left out, because of restrictions of the POSIX support in
  84. EPOC:
  85. =over 4
  86. =item *
  87. backquoting, pipes etc.
  88. =item *
  89. system() does not inherit ressources like: file descriptors,
  90. environment etc.
  91. =item *
  92. signal, kill, alarm. Do not try to use them. This may be
  93. impossible to implement on EPOC.
  94. =item *
  95. select is missing.
  96. =item *
  97. binmode does not exist. (No CR LF to LF translation for text files)
  98. =item *
  99. EPOC does not handle the notion of current drive and current
  100. directory very well (i.e. not at all, but it tries hard to emulate
  101. one) See PATH.
  102. =item *
  103. Heap is limited to 4MB.
  104. =item *
  105. Dynamic loading is not implemented.
  106. =back
  107. =head2 Compiling Perl 5 on the EPOC cross compiling environment
  108. Sorry, this is far too short.
  109. =over 4
  110. =item *
  111. You will need the C++ SDK from http://developer.epocworld.com/.
  112. =item *
  113. You will need to set up the cross SDK from
  114. http://www.science-computing.de/o.flebbe/sdk
  115. =item *
  116. You may have to adjust config.sh (cc, cppflags) to reflect your epoc
  117. and SDK location.
  118. =item *
  119. Get the Perl sources from your nearest CPAN site.
  120. =item *
  121. Unpack the sources.
  122. =item *
  123. Build a native perl from this sources... Make sure to save the
  124. miniperl executable as miniperl.native.
  125. Start again from scratch
  126. cp epoc/* .
  127. ./Configure -S
  128. make
  129. cp miniperl.native miniperl
  130. make
  131. make ext/Errno/pm_to_blib
  132. perl link.pl perlmain.o lib/auto/DynaLoader/DynaLoader.a \
  133. lib/auto/Data/Dumper/Dumper.a \
  134. lib/auto/File/Glob/Glob.a lib/auto/IO/IO.a \
  135. lib/auto/Socket/Socket.a \
  136. lib/auto/Fcntl/Fcntl.a lib/auto/Sys/Hostname/Hostname.a \
  137. perl.a `cat ext.libs`
  138. perl createpkg.pl
  139. wine G:/bin/makesis perl.pkg perl.sis
  140. =back
  141. =head1 SUPPORT STATUS
  142. I'm offering this port "as is". You can ask me questions, but I can't
  143. guarantee I'll be able to answer them.
  144. =head1 AUTHOR
  145. Olaf Flebbe <[email protected]>
  146. http://www.science-computing.de/o.flebbe/perl/
  147. =head1 LAST UPDATE
  148. 2001-02-26
  149. =cut