File format · .a1

A1 File Repair: Free Pascal Archive Files Explained

An A1 file is a Free Pascal archive tied to the old go32v1 DOS target. Learn what sits inside it, why it fails to open, and how recovery works.


A1 files occupy a quiet corner of compiler history. Extension references describe them as archives produced for Free Pascal's go32v1 target, an early route to 32-bit DOS programs. Almost no modern tool recognizes the extension, so an A1 file that will not open is often stranded rather than broken. Sometimes it is genuinely damaged. This guide covers what the format is, what sits inside it, why these files stop working, and what recovery can realistically bring back.

What is an A1 file?

Free Pascal, usually shortened to FPC, is an open-source compiler for the Pascal and Object Pascal languages. The FPC development team has maintained it since the early 1990s, and it still spans a wide range of processors and operating systems. Its official home is the Free Pascal project website.

Compiling for DOS once posed a problem: plain DOS runs 16-bit code, while FPC generates 32-bit code. The answer was a DOS extender called go32, created for the DJGPP project. The Free Pascal team supported the extender's first version, go32v1, in its earliest releases. The DJGPP project later replaced that extender with a second version, go32v2, and FPC followed. Support for go32v1 ended long ago, while go32v2 remains a supported DOS target.

File-extension references list .a1 as the archive format tied to that first go32v1 target. The name sometimes appears mistyped as GO321v1 in extension databases; the target's proper spelling is go32v1. An archive of this kind is a static library: compiled object code gathered into one file so a linker can pull in only the parts a program needs.

One point of honesty is due here. That target predates the project's current manuals, and the Free Pascal team's own documentation remains the final word on its file layout. We are an independent repair service, not part of the Free Pascal project.

Inside an A1 file: container and contents

Unix systems have packed compiled code into archives for decades, and the container for that job is the ar format. Static libraries named .a use it, and an A1 archive appears to follow the same rules. You can check this yourself. Open the file in a hex editor and inspect the first eight bytes: the text ! followed by a newline, hex 21 3C 61 72 63 68 3E 0A, marks an ar container.

After that signature comes a sequence of members. Each member opens with a 60-byte text header holding a name, a timestamp, owner and group IDs, permissions, and a size, ending in a two-byte marker (hex 60 0A). The first member is often a symbol index, which lets the linker resolve names without scanning every object. The remaining members are object files compiled for the i386 DOS extender environment.

Beside the archive you would typically find FPC's unit files (.ppu) and plain object files (.o), with source in .pp or .pas form. On other targets the same packaging role belongs to .a libraries and, on Windows, to .lib files. No standard MIME type is registered for A1 files, which is one reason generic tools shrug at them.

Why do A1 files fail to open?

Usually the file is fine and the software is missing. The go32v1 target left the compiler decades ago, so current FPC installs cannot consume its libraries. Nothing on a modern desktop claims the extension. In these cases the data is intact; it is simply unusable in place.

Genuine damage happens too, and old age is the main accelerant. These files lived on floppies and early hard disks, media that degrades. Bad sectors tend to hit member headers, which breaks the chain a reader follows from one entry to the next. Copies made over serial links or FTP in text mode could truncate files or corrupt bytes, because text-mode transfer rewrites line endings inside binary data. A build interrupted mid-write leaves a partial member at the end. An index built by one compiler version can also mismatch objects from another, producing linker errors in an otherwise healthy archive.

One more failure is deceptively simple: damage to the very first bytes. If the magic signature is altered, tools report that the file is not an archive at all. The members behind that header may still be perfectly intact.

What can be recovered from a damaged A1 file?

The ar design works in our favor. Each member is self-contained, with its own header, size, and payload. An intact object file can be extracted exactly as it was stored, no matter what happened to its neighbors. If the symbol index is lost or stale, we can rebuild it from the surviving members, since the index is derived data rather than original content.

Partial damage costs only what it touches. If three members out of forty are unreadable, the other thirty-seven can usually be recovered and returned. Where a member is only partly present, fragments of its object code can sometimes still be salvaged. And if the code itself is beyond saving, the practical route is often recompiling the original units, which is worth checking before writing the file off.

How does A1 file recovery work?

Our engineers begin on a copy, never the original. First we confirm the container by checking the signature and reading each member header in sequence. Where the chain of headers breaks, we scan the raw bytes for the header pattern and for known object-file signatures, carving members out directly. Every extracted object is then validated against the structure its format prescribes, so we can distinguish recovered from merely present.

Repacking comes last. We rebuild the symbol index, assemble the validated members into a fresh, valid archive, and hand you both that file and the individual objects. You also receive a report naming any members that could not be saved, so you know exactly what is missing before you relink anything.

A1 file FAQ

What programs open an A1 file?

Nothing current claims the extension by name. The toolchain that produced these archives belongs to a target the Free Pascal team retired decades ago. If the file is an ar container underneath, the ar tools from the GNU binutils collection can often list and extract its members. A hex editor is the quickest way to inspect one.

Can I rename the file to .a and use it?

Renaming changes the label, not the contents. If the container really is ar format, binutils' ar may open it after a rename. That will not make the contents usable, though, because object code written for go32v1 will not link into modern programs. Renaming also never repairs corruption; the underlying damage travels with the file.

Are A1 files still created today?

No. The go32v1 target is long gone from the compiler. The A1 files we see come from old backups, retired machines, and archived copies of 1990s build trees.

Does a file that refuses to open have to be corrupt?

No, and the distinction matters. Check the first bytes in a hex editor. If you see the ! signature, the container is intact at least, and missing software is the likelier problem. If those bytes are wrong, you are probably looking at real corruption, or at a file that is not an archive at all.

Could my .a1 file have come from other software?

It is possible. Extensions collide, and .a1 has surfaced in other contexts over the years. Identification is part of any evaluation, so send the file even if its origin is a mystery. Knowing the producing program, if you have it, speeds the diagnosis.

Free evaluation for your A1 file

Send us the damaged or unreadable file and our engineers will examine it at no cost. You receive a clear report of what is recoverable and a fixed quote before any work proceeds. If we cannot recover your data, there is no charge. Old archives often hold more than their owners expect, and it costs nothing to find out.

Send us your .a1 file for a free evaluation

Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.

Start a free evaluation