flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Clock Cycle/Byte size counter? |
Author |
|
Loplin 01 Mar 2005, 19:46
I think it would be interesting, and uniquq, if Fresh were to someday add this;
on the left of every line number, it would display how many clock cycles the current line of asm will use and it will display how much space it will take up in the final executable. This would be very useful for code optimization, but would be a lot of work. /Loplin _________________ If I have a penny and you have a penny and we exchange pennies, we will both have one penny;but, if I have an idea and you have an idea and we exchange ideas, we will both have two ideas. http://menuet.homelinux.net |
|||
01 Mar 2005, 19:46 |
|
MCD 02 Mar 2005, 09:16
I can imagine a byte size counter is possible, but displaying the clock cycles an instruction will use is just unrealistic in our days. there are so many unlinear CPU optimizations, that this will become garbage. Well, you can try to determine the time an instruction actually uses with some kinda RDTSC and stuff, but this value will however be different on other CPUs
|
|||
02 Mar 2005, 09:16 |
|
JohnFound 02 Mar 2005, 09:58
MCD wrote: I can imagine a byte size counter is possible, but displaying the clock cycles an instruction will use is just unrealistic in our days. there are so many unlinear CPU optimizations, that this will become garbage. Well, you can try to determine the time an instruction actually uses with some kinda RDTSC and stuff, but this value will however be different on other CPUs Yes, timing of particular instructions is almost imposible and also useless IMHO. But some kind of profiler measuring the time of execution of procedures and blocks of code is possible and pretty usefull. I am too busy now with other subsystems of Fresh, but if someone wants to implement profiler, I can provide any help about Fresh internals, etc. Regards. |
|||
02 Mar 2005, 09:58 |
|
Marco Leise 20 Apr 2005, 15:46
I second that
Just yesterday I thought about that. It's just a passion for me to write code as small as possible, but there are examples where this could be usefull... bootsectors, drivers and other stuff that stays in memory or just programs delivered on disk images like virus scanners. ...or maybe viruses themselves? just kidding. Yes a 'size of opcode' is definetly cool. What is the longest code? Six bytes? What about a display column at the right, that can be used for different stuff and you can switch between the different display modes. Additionally to the proposals made above (display code length or cpu cycles) it could also show you the processors on which the instr. is supported. For the code length: It could be displayed as a bar from 0 to 6 or something with marks. |>|>|>| | | | for three bytes for example. Depends on how much of the editor are it would cost though, but I like some difference in the 'data presentation' so I don't mix it with line numbers or so. What do you think? It's also not that hard to implement. |
|||
20 Apr 2005, 15:46 |
|
OzzY 24 Sep 2005, 04:23
I like the idea of size counter. Could it be done for FASMW?
|
|||
24 Sep 2005, 04:23 |
|
f0dder 24 Sep 2005, 06:23
If you're going to write a profiler, you're better off not integrating it directly into fresh. It's a complicated project, and lends itself better to standalone usage.
|
|||
24 Sep 2005, 06:23 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.