The gfile Utility Program

The gfile Utility Program is similar to UNIX file. The gfile Utility prints the file type of each filename argument. It may also display additional information. For example, if a machine supports both Big and Little Endian data ordering, then for an object file, object file library, or executable file, gfile displays the machine type and byte order. For unrecognized object files, gfile prints unknown machine type.

Usage

To use gfile, enter:

gfile [-help] filename1 [filename2 . . .]

where

-help Display information about all options.

filename Filename argument(s), separated by white space.

Examples

Example 1

There is an executable file named a.out in the current working directory. This executable was created by the Green Hills Tool Chain for an SH (Super Hitachi) CPU. Running gfile on a.out produces the following:

gfile a.out
a.out: SH big endian

Example 2

The current host system is a SPARC workstation running the Solaris 2.x operating system, which uses the ELF format for executable files:

gfile /bin/od
/bin/od: SPARC big endian executable ELF


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.