flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [Suggestion] Constant store compile TIME and DATE.

Author
Thread Post new topic Reply to topic
tuyethoa08041997



Joined: 02 Feb 2014
Posts: 3
tuyethoa08041997 02 Feb 2014, 06:21
Like the title, sometime I want store compile Time and Date to my executable but I can't find that constant in FASM.PDF document.

Could it will appear on next ver of FASM? Very Happy
Post 02 Feb 2014, 06:21
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 02 Feb 2014, 10:31
Please have a look at the old thread about computing date elements from %T value: http://board.flatassembler.net/topic.php?p=8558#8558
Post 02 Feb 2014, 10:31
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20356
Location: In your JS exploiting you and your system
revolution 02 Feb 2014, 11:19
Actually %t is not a constant. It can be different each time you read it.

I remember once I suggested a solution to the changing time problem.
Post 02 Feb 2014, 11:19
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 02 Feb 2014, 13:16
revolution wrote:
Actually %t is not a constant. It can be different each time you read it.

I remember once I suggested a solution to the changing time problem.

Just as fasm's "numerical constants" are in fact numerical variables.
Is there an actual problem that this causes? Other than a slight abuse of the SSSO principle, but this is actually a problem with %t in any variant.
Post 02 Feb 2014, 13:16
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20356
Location: In your JS exploiting you and your system
revolution 02 Feb 2014, 13:23
Tomasz Grysztar wrote:
Is there an actual problem that this causes?
I'm not aware of any existing code where this causes a problem, just the potential for a future gotcha for anybody unaware of the behaviour.
Post 02 Feb 2014, 13:23
View user's profile Send private message Visit poster's website Reply with quote
tuyethoa08041997



Joined: 02 Feb 2014
Posts: 3
tuyethoa08041997 05 Feb 2014, 08:19
Thank you!

Ps: Sometime the document beat me ==""
Ps2: Oh, it's on page 15 Smile
Post 05 Feb 2014, 08:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.