tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] C23 embed path


From: Fred van Kempen
Subject: Re: [Tinycc-devel] C23 embed path
Date: Wed, 7 Jun 2023 13:55:42 +0000 (UTC)

Yeah, do not mess with generally-accepted -L and -I flags.  That said,

  -I myincs.zip

could have the same meaning as

  -I /some/path/to/myincs/

of course.

Fred

On Wednesday, June 7, 2023 at 03:15:20 AM EDT, Charles Lohr <lohr85@gmail.com> wrote:


TIL it's not always "-I" ... I feel like it should always be -I.

On Tue, Jun 6, 2023 at 7:41 AM certanan via Tinycc-devel <tinycc-devel@nongnu.org> wrote:
Hello, everyone.

I have finally got around to having a shot at implementing C23's "#embed" directive. However, I am struggling to think of the best way to let the user specify embed paths. The standard proposal (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3017.htm#design-familiar-paths) suggests using "-f" flags; that is incompatible with tcc in the current state because it is incapable of parsing arguments of "-f" flags.
These are my ideas:
- Thinking up a quasi-arbitrary letter for specifying the path in style of "-I"
- Searching only the compiled file's directory and having the user symlink desired files to it

What are the opinions of more experienced contributors?

Thanks.



-- certanan

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]