Re: How to set the compiler to handle thousand loops ?



On Fri, 31 Oct 2008 04:24:01 -0700, tobleron wrote:

So, I want to know, is there any way to make adjustment in IDE, may be
for buffer setting, or some thing like that ? I used 512 MB of RAM, and
I seek another possible ways other than "add more RAMs". Please advise.

So, if I understand your description, what you're doing is:

read file into a buffer
for each line in the buffer
split into channels
re-code into DICOM (little endian) format
append line to output buffer
end-for
write output buffer to a file

If I'm wrong, please describe your logic as an SSCE or in pseudocode.

Otherwise, why buffer entire files when you appear to be processing the
data line by line? Read from the file line by line and output each
converted line as its completed and your memory problems will vanish.


--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.



Relevant Pages

  • Re: Audio skips when RAM is ~full
    ... It's different because you need to reserve a fixed amount of ram for the ... There may be a problem with the way the audio buffer gets allocated or freed. ... Basically, you tell it how many kB you want to free, then it allocates ...
    (Linux-Kernel)
  • Re: Fast memcpy in kernel space
    ... I would like to see a VC managed method of mapping direct access to the video ... hardware frame buffer. ... the RAM copy of the VC being switched to would be copied in. ... the video hardware buffer from the text buffer ... ...
    (comp.os.linux.development.system)
  • Re: Does data hit the hard disk?
    ... > I have two processes running on the same workstation, ... longer be true and the data will hit the disk. ... buffered in RAM, too. ... system can do, so as the buffer fills, flushing the buffer to disk ...
    (comp.os.linux.hardware)
  • Re: O_DIRECT Inside Kernel Module?
    ... > Bad Address) when I attempt this from a kernel module. ... Clearly it expects a user space address as a buffer.. ... but not being able to get any ram until you have flushed ...
    (comp.os.linux.development.system)
  • Re: RS232 buffer size
    ... to revector those kernel routines that are available for re-vectoring ... RAM memory. ... need to be changed to increase the allocation size of the buffers that ... Store Byte Recieve into Buffer - Stores received byte into ...
    (comp.sys.cbm)