Latest versions
...
Menu  Language: fr
Search




Articles & Documents

Close Tutorials

Preferences

Connect again
---

Your name (or pseudo) :

Your secret code (associated with your pseudo)


 Count of members 434 members


Connected :

(nobody)
CPDB.Net

Friends News
Google Ads
Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
24 Subscribers
Webmaster - Infos
Visits

   visitors

   visitors online

Pagerank
forum.gifForum - ppCompiler [EN] - Topic #47

Forum - Forum
ppCompiler [EN] - ppCompiler [EN]


active  Topic # 47  writeln in multi segment code

06/02/2012 @ 10:57
by DearJohn

Anonymous

visitor

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


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


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 ^