comp.lang.ada
 help / color / mirror / Atom feed
* Hardware independent programming
@ 2020-06-29  4:42 ldries46
  2020-06-29  9:07 ` Niklas Holsti
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: ldries46 @ 2020-06-29  4:42 UTC (permalink / raw)


Hardware can in some cases have limits you have to consider when writing 
a program.
  At this moment I can mention three:

 1. The printer. The format of the documents you want to print must fit
    on the printers available to the user. In general the problem is
    solved by the possibility of printer drivers to shrink you document
    f.i. from A4 to A4 or saving the document to a file that can be
    printed elsewhere.
 2. The monitor on the system your program is running. Creating a window
    that is to large for your screen resolution can be trouble some but
    you do not know the resolution of the the customer using your
    program. The solution for such a problem can only be hardware
    independent programming. Your program should know the resolution of
    your screen and adjust to  that or in the worst case decide that
    system is not suitable for the program.
 3. The available memory. Your program will in some cases need to know
    the limits to which the heap stretches within the memory (in cases
    where it is necessary  to use very large bulks of data). For
    operating systems that have the possibility to stretch the heap with
    a part on disc both boundaries (with and without disc data) are of
    interest.

There should be a package in Ada that like GNAT.OS-lib does with 
operating system differences, makes such hardware parameters available 
for the programmer.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-07-02  7:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29  4:42 Hardware independent programming ldries46
2020-06-29  9:07 ` Niklas Holsti
2020-06-29 12:22   ` alby.gamper
2020-06-29 14:11 ` Shark8
2020-06-30  6:28 ` ldries46
2020-06-30  6:35   ` ldries46
2020-07-02  6:15 ` ldries46
2020-07-02  7:25   ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox