tool-zpragma

Diagnoses pragma-define and pragma-redirect handling in the z88dk zpragma processor.

1.1k|206|Updated Mar 16, 2016
One-click install
npx skills add https://github.com/z88dk/z88dk --skill tool-zpragma-z88dk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tool-zpragma
Source: https://github.com/z88dk/z88dk/tree/main/.agents/skills/tool-zpragma
Command: npx skills add https://github.com/z88dk/z88dk --skill tool-zpragma-z88dk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When building Z80/8080 programs with z88dk, pragma directives control compile-time configuration such as defines and redirects. When these pragmas behave unexpectedly, developers need a way to inspect how the zpragma processor interprets them. This Skill provides reference guidance for debugging pragma handling through the zcc front end. ## Core Features & Use Cases - Pragma debugging reference: Documents the z88dk-zpragma binary and its invocation via zcc -pragma-* options. - Workflow linkage: Points to related tooling such as the zcc driver front end and measurement methodologies for deeper investigation. - Use Case: A developer's pragma-define is not taking effect in a z88dk build; use this Skill to understand how zpragma processes the directive and which zcc flags to inspect. ## Quick Start Ask the assistant to explain how z88dk-zpragma handles a specific pragma-define or pragma-redirect directive in your zcc build.

Frequently Asked Questions about tool-zpragma

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug pragma handling in z88dk?

Use the z88dk-zpragma processor through the zcc front end with -pragma-* options to inspect how pragma-define and pragma-redirect directives are interpreted. Consult the zpragma source in src/zpragma for authoritative behavior since no dedicated wiki page exists.

What is z88dk-zpragma used for?

z88dk-zpragma is the pragma processor in the z88dk toolchain for Z80 and 8080 targets. It handles pragma-define and pragma-redirect directives that control compile-time configuration, and it is normally invoked indirectly via zcc.

Why is my pragma-define not taking effect in zcc?

Pragma directives may be overridden by command-line options, processed in an unexpected order, or redirected by another pragma. Trace the handling through zcc -pragma-* flags and review the zpragma source to confirm precedence rules.

Does zpragma have standalone documentation?

No dedicated wiki page exists for zpragma. The Skill notes that live help and the source tree under src/zpragma are the authoritative references, with the zcc driver documentation providing related context.