From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,766b97f0701294d6 X-Google-Attributes: gidfee84,public From: michaels@psychd.zko.dec.com (Karen Michaels) Subject: RE: Porting to Alpha's OSF1 Date: 1995/09/26 Message-ID: <449atg$3d9@lead.zk3.dec.com> X-Deja-AN: 110793425 distribution: world organization: Digital Equipment Corporation reply-to: michaels@psychd.zko.dec.com (Karen Michaels) newsgroups: comp.unix.osf.osf1 >I'm about to port a project of about 200,000 lines of code to Alpha. >The system works currently on SunOS 4.1.X, Solaris 2.X, HP-UX, AIX 3.2.5 >and IRIX 5.X. The system involves a lot of TCP/IP sockets stuff, X and >Motif and RPC. > >Any help of the things I should look for in the porting will be most >welcomed. I realize I'll have to make sure int's and pointers are not >mixed, but any other pointers can really help me. I've heard about a >stack problem I should look for, could you give me details about it? > >Thanks, > > Gil Bregman A product called the Digital Porting Assistant should help you in your port. It analyzes source code and points out problems and potential problems. It also includes extensive on-line help. Version 1 is available now for FREE. I have attached a summary of this product at the end of this message. If you want to get a copy send mail to port-comments@zko.dec.com. Karen Michaels Digital Porting Assistant Project Leader Digital Equipment Corportation -------------------------- The Digital Porting Assistant The Porting Assistant is a tool that helps application developers port their code to Digital UNIX(TM). It analyzes C and C++ code and identifies code that may not compile or run properly. The Porting Assistant reduces the time and cost of porting an application to Digital UNIX. It provides quick access to technical porting information. The Porting Assistant is available now for free. Features: The Porting Assistant provides an interactive environment in which the user can locate places in the code to change, understand why they need to make the changes and then make the change. The Porting Assistant also provides a global replace capability which allows the users to perform a replace operation over a set of files. Using the Porting Assistant, the user can run a check and then look at the diagnostic messages that the check produces. The Porting Assistant allows the user to navigate though the diagnostic messages using their editor (vi, emacs or a Motif editor). From the editor the user can see both the diagnostic and the source code that caused the diagnostic. Checking code: The Porting Assistant runs the following checks over source code: - locates conditional code (#ifdef) that might also need a Digital UNIX branch - locates includes (#include) of files that don't exist and reports locations where a file of the same name exists - locates calls to library functions that don't match Digital UNIX definitions - locates code with 32-bit dependencies - locates calls to library functions with different semantics on Digital UNIX Some applications that people port to Digital UNIX may already run on multiple platforms. If this is the case, they may use conditional code that applies to one or more platform. The Porting Assistant can locate this conditional code, so that the developer can determine whether or not the code applies to Digital UNIX. Different operating systems store different include files in different directories. The Porting Assistant locates include files that are not found in the specified location. If possible, it reports locations where the file does exist. For example, the file dkio.h is located in /usr/include/sun on SunOS systems, but it is located in /usr/include/sys on Digital UNIX systems. The Porting Assistant will flag references to /usr/include/sun/dkio.h and suggest that the user include /usr/include/sys/dkio.h instead. The Porting Assistant checks for functions that do not have function definitions. This may be the case if an application calls a system function that is available on another platform, but does not exist on Digital UNIX. The Porting Assistant also flags functions that have calls that are inconsistent with their definition. This may occur if a function has a different signature on Digital UNIX, than on another platform. The Porting Assistant locates code that makes assumptions that it is running on a 32-bit architecture. This includes operations such as assigning or casting pointers to integers, assignments of longs to other types and sign extension problems. The Porting Assistant provides a list of functions that have different semantics on Digital UNIX than on other platforms. These functions are different because Digital UNIX is a 64- bit architecture. For each function, the Porting Assistant provides access to the function's man page as well as a special man page that describes how this function is different on Digital UNIX. The Porting Assistant searches the user's code to find calls to these functions. Help using the Porting Assistant and fixing problems: The Porting Assistant includes online hypertext help that describes how to use it and the relevance of each of its checks. Included in the online help are porting tips that cover topics such as byte ordering, data alignment and shared libraries. In addition, the Porting Assistant provides extensive help text for the errors that it reports. This help text includes a description of the problem and a suggestion on how the user can fix it. Global Replace: As part of porting, developers may have to change function names, variable name or type name in their source files. The Porting Assistant supports this activity through its global replace capability. It allows the user to change a specified string to a different string in a set of files. The Porting Assistant can perform the substitution for the user with or without confirmation. When the user wants to confirm each substitution, the Porting Assistant brings each file into the user's editor and positions on each occurrence of the specified string. The user can then indicate whether or not they want to change the current occurrence of the string. Requirements: The Porting Assistant requires a typical software development configuration. This consists of an Alpha machine with the following configuration: - 64 MB of memory - DEC OSF/1 Alpha Operating System V3.0 or greater - DEC OSF/1 Alpha UNIX C Developers' Extensions V3.0 or greater - 48 MB of disk space