Menu
Search




Articles & Documents

Close Tutorials

Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
22 Subscribers
CPDB.Net

Friends News
Visits

   visitors

   visitors online

Webmaster - Infos
forum.gifForum - ppCompiler - Topic #47

Forum - Forum
ppCompiler - ppCompiler


active  Topic # 47  writeln in multi segment code

06/02/2012 @ 10:57
by DearJohn

Anonymous



Hi,

I use multi segment like it is shown in Lychee, and it works fine, but I realized, that some commands cannot be used in the segments like "clrscr", "write" od "writeln". The compiler says "writeln unknown". Is there a mandatory reason why these commands cannot be used or is there some trick about?

Thanks. Reinhard.

  Post an answer  Top
Answer n° 1
--------
06/02/2012 @ 21:52
by Philippe

Anonymous

visitor
The link process is different when linking the main segment and the secondary segments. The standard Pascal run time library is only linked in  the main segment in order to avoid code duplication. This is not really a mandatory reason. A way to bypass this drawback is to concentrate the i/o procedures in the main segment and to reserve secondary segments to pure computation procedures.
Write to Philippe   Post an answer  Top
Answer n° 2
--------
09/02/2012 @ 09:57
by DearJohn

Anonymous

visitor

Thanks a lot.

Write to DearJohn   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 




^ Top ^