---
name: "fgen"
section: "1"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["openbsd"]
url: "https://new.carta.tech/fgen"
---

# fgen(1)

IEEE 1275 Open Firmware FCode Tokenizer

## NAME

**fgen** – IEEE 1275 Open Firmware FCode Tokenizer

## SYNOPSIS

**fgen** \[**-d** *level*\] \[**-o** *outfile*\] *infile*

## DESCRIPTION

Reads Forth source and generates tokenized FCode object file.

The options are as follows:

- **-d** *level*

  Sets the debug *level*. When the debug level is greater than zero, additional debugging messages are printed to standard output. Different levels of verbosity are available if compiled with DEBUG.

- **-o** *outfile*

  Write output to *outfile* instead of standard output.

## AUTHORS

Written by Eduardo E. Horvath ⟨*eeh@one-o.com*⟩

## BUGS

String escape sequences are not recognized so things such as

" foo "(01 02) "n "

will result in the string

“foo "(01 02) "n”.

Hexadecimal numbers with dots in them such as 100.0000 are not parsed.

Permissions on the output file are often incorrect.

Output to the standard output device can cause problems.
