flat assembler
Message board for the users of flat assembler.
Index
> Linux > read file contents to array |
Author |
|
revolution 18 Apr 2020, 05:39
Reading and writing files on a disk is most likely going to be I/O bound unless there is a lot of intermediate processing.
For your case it appears there isn't much processing in the middle, it is just basic number conversion. So differences in performance might minimal or close to zero. And with at most 4000 numbers it would likely finish in a few milliseconds so accurate timing would be difficult. fasm or fasmg would be almost the same except for how the macro language works. fasm will assemble faster in most cases. fasmg requires more support files. You might be interested in redsock's exploration of file processing: https://board.flatassembler.net/topic.php?p=212363#212363 |
|||
18 Apr 2020, 05:39 |
|
Potato 18 Apr 2020, 06:03
revolution wrote: Reading and writing files on a disk is most likely going to be I/O bound unless there is a lot of intermediate processing. Thank you for the info. I had a look through the assembly file and it answers a lot of the questions I had about the file management. With the additional error checking going on avoids a lot of potential headaches. With the program I was hoping it would be flexable enough so I could use much larger data sets. As you say 4000 values is nothing, I think it was more of the challenge part and it opens the door to other things after. The harddrive being the limiting factors that very true and I should have thought of that. After poking around the forum I found FDBG, such a useful tool for looking carefully at whats going on with the code. That program is going to make things way easier going forward. |
|||
18 Apr 2020, 06:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.