Author | Message | ||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1515] Not included in output file - posted: 2015-01-25 13:33:17 Code:
Creates 0 bytes output file. As for 'emit' seems works: Code:
Result: Code:
Also similar 0 bytes effect with Code:
May be this because some optimizations but this is assembler. And should be possible get what we write. | ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1520] - posted: 2015-01-25 17:20:33 Variables are not written when not in use, you can override this by declaring the variable. e.g. Code:
as for: Code:
Again this is removed as it the instructions are useless, however I may add a directive to prevent optimising in such cases. EDIT: OK, I have added a directive, but it is experimental. Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1521] - posted: 2015-01-25 18:46:07 Ok, it works fine Code:
Code:
It seems for me that programmer better knows for what he needs such instructions. Are you really suggesting to remove all NOP's? How it possible to know for programmer which NOP's were removed? For example: Code:
Whether last 2 lines of Code:
| ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1522] - posted: 2015-01-25 19:37:02 No, I have not went as far as complete optimization of such things. But things like alignment should be done in a way that keeps the code readable and for a high level assembler, this should be in some way automated or via a separate syntax. This makes it easier for newbies to learn and understand what is really going on in the source. (keeping it readable) But it is understandable to use such things, in which case with new release you can disable optimisations. (which actually, you have give me a good idea for a new feature, thanks) Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1555] - posted: 2015-01-30 17:50:59
For example this outputs only 1 byte: Code:
And this error 'Unexpected symbol ]' occures: Code:
| ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1556] - posted: 2015-01-30 22:46:36 you would need a set size of the data since it is not constant... e.g. Code:
but, maybe I will add this to my list to allow assigning string to array to separate into "parts" Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1559] - posted: 2015-01-30 23:07:30 Code:
Are you tried to compile this? I have very strange result Code:
As for second variant it is not so convenient to split the string into single characters. String may be not so short. | ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1564] - posted: 2015-01-31 00:43:29 I will look into the issue with ShortString sample, as for temporary solution: Code:
then your code: Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Currently Active Users: There are currently 6 user(s) online. 0 member(s) and 6 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |