Sponsored Content
Full Discussion: C
Top Forums Programming C Post 7657 by loadc on Friday 28th of September 2001 10:47:58 PM
Old 09-28-2001
EEEKKK!!!

Okay, I've wanted to do this as well-

Here is the trick the VM mainframeers taught me, it actually did work, but keep in mind, I did this on a VM CP command env, using pipes and some VM tools translating to EBCDIC, so go easy if this doesn't translate well...

We took the binary file and converted to hex sing a converter in the editor on VM, we then took the hex and translated to EBCDIC (ascii should be a reasonable change from there, as well), and read what we could of the file.

Keep in mind, teh compiler that put the file together is going to have done some things to the file, you are WAY better off with a good de-compiler, but you didn't hear that from me...

Whatever you get back from either operation, it may not be an exact copy of the source code, unless you have a lot of time, knowledge of EXACTLY what tools were used by the developers, and the skill or luck to find a de-compiler that knows what the compiler did.


Or, maybe I'm totally out of my tree and I'm talking out of my knothole...



loadc
 
PERLVMESA(1)						 Perl Programmers Reference Guide					      PERLVMESA(1)

NAME
perlvmesa - building and installing Perl for VM/ESA. SYNOPSIS
This document will help you Configure, build, test and install Perl on VM/ESA. DESCRIPTION
This is a fully ported perl for VM/ESA 2.3.0. It may work on other versions, but that's the one we've tested it on. If you've downloaded the binary distribution, it needs to be installed below /usr/local. Source code distributions have an automated "make install" step that means you do not need to extract the source code below /usr/local (though that is where it will be installed by default). You may need to worry about the networking configuration files discussed in the last bullet below. Unpacking Perl Distribution on VM/ESA To extract an ASCII tar archive on VM/ESA, try this: pax -o to=IBM-1047,from=ISO8859-1 -r < latest.tar Setup Perl and utilities on VM/ESA GNU make for VM/ESA, which may be required for the build of perl, is available from: <http://vm.marist.edu/~neale/vmoe.html> Configure Perl on VM/ESA Once you've unpacked the distribution, run Configure (see INSTALL for full discussion of the Configure options), and then run make, then "make test" then "make install" (this last step may require UID=0 privileges). There is a "hints" file for vmesa that specifies the correct values for most things. Some things to watch out for are: o this port does support dynamic loading but it's not had much testing o Don't turn on the compiler optimization flag "-O". There's a bug in the compiler (APAR PQ18812) that generates some bad code the optimizer is on. o As VM/ESA doesn't fully support the fork() API programs relying on this call will not work. I've replaced fork()/exec() with spawn() and the standalone exec() with spawn(). This has a side effect when opening unnamed pipes in a shell script: there is no child process generated under. o At the moment the hints file for VM/ESA basically bypasses all of the automatic configuration process. This is because Configure relies on: 1. The header files living in the Byte File System (you could put the there if you want); 2. The C preprocessor including the #include statements in the preprocessor output (.i) file. Testing Anomalies of Perl on VM/ESA The "make test" step runs a Perl Verification Procedure, usually before installation. As the 5.6.1 kit was being assembled the following "failures" were known to appear on some machines during "make test" (mostly due to ASCII vs. EBCDIC conflicts), your results may differ: [the list of failures being compiled] Usage Hints for Perl on VM/ESA When using perl on VM/ESA please keep in mind that the EBCDIC and ASCII character sets are different. Perl builtin functions that may behave differently under EBCDIC are mentioned in the perlport.pod document. OpenEdition (UNIX System Services) does not (yet) support the #! means of script invocation. See: head `whence perldoc` for an example of how to use the "eval exec" trick to ask the shell to have perl run your scripts for you. AUTHORS
Neale Ferguson. SEE ALSO
INSTALL, perlport, perlebcdic. Mailing list for Perl on VM/ESA If you are interested in the VM/ESA, z/OS (formerly known as OS/390) and POSIX-BC (BS2000) ports of Perl then see the perl-mvs mailing list. To subscribe, send an empty message to perl-mvs-subscribe@perl.org. See also: http://lists.perl.org/list/perl-mvs.html <http://lists.perl.org/list/perl-mvs.html> There are web archives of the mailing list at: o http://www.xray.mpe.mpg.de/mailing-lists/perl-mvs/ <http://www.xray.mpe.mpg.de/mailing-lists/perl-mvs/> o http://archive.develooper.com/perl-mvs@perl.org/ <http://archive.develooper.com/perl-mvs@perl.org/> perl v5.16.3 2013-03-04 PERLVMESA(1)
All times are GMT -4. The time now is 05:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy