View Issue Details

IDProjectCategoryView StatusLast Update
00019211003.1(2024)/Issue8Shell and Utilitiespublic2025-05-01 16:06
Reporterdannyniu Assigned To 
PrioritynormalSeverityEditorialTypeEnhancement Request
Status ClosedResolutionFuture Enhancement 
NameDannyNiu/NJF
OrganizationIndividual
User Reference
SectionC17, or C2* for whatever revision of C standard to be supported by POSIX.
Page NumberNot the current issue.
Line NumberNot the current issue.
Interp Status---
Final Accepted Text
Summary0001921: A future C compilation interface needs to support "#embed"
DescriptionThe current version of the standard (Issue8/SUSv5/POSIX-2024) specifies the C compiler named "c17", which is a minor revision of "c11" that contains only editorials and clarifications and no normative changes.

The current version of the C standard - C23 supports the "#embed" preprocessing directive that explodes the content of a file into the source code in the form of comma-separated list of byte values; C23 also specifies that a mechanism similar to but distinct from that for the "include" mechanism be used for searching embed files.
Desired ActionThis text is taken from GCC manual. It's a multi-character directive, if standard developer desire a single-letter directive, this may be changed:

<dl>
<dt>--embed-dir=dir</dt>
<dd>

Append dir directory to the list of searched directories for #embed preprocessing directive or __has_embed macro. There are no default directories for #embed.


...

</dd>
TagsNo tags attached.

Activities

Don Cragun

2025-05-01 16:05

manager   bugnote:0007169

We can't add this feature as a requirement in the c17 utility since this feature is not required by the 2017 C Standard. When we start work on the next revision we will align POSIX with the C Standard that is current at that time. Since the 2023 version of the standard contains this feature, it is already on the agenda for the next revision. Therefore, this bug is closed.

Issue History

Date Modified Username Field Change
2025-04-29 05:57 dannyniu New Issue
2025-05-01 16:05 Don Cragun Note Added: 0007169
2025-05-01 16:06 Don Cragun Status New => Closed
2025-05-01 16:06 Don Cragun Resolution Open => Future Enhancement
2025-05-01 16:06 Don Cragun Interp Status => ---