gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] Re: Intrinsics


From: Bernard Giroud
Subject: [open-cobol-list] Re: Intrinsics
Date: Tue Nov 30 06:36:04 2004

Hi Tim,
 
Status: I began and had to pause a few weeks ago at home. Basically I wanted to redo what Ferran Pegueroles and I did with TinyCOBOL. But I'll be glad to let you go along the lines you outlined.
 
Just one thing related to date functions: the base time in COBOL is 1st January 1600 AFAICR, while in POSIX (Un*x/GNU/Linux) it is 1rst January 1970. So ideally, we should take into account the COBOL base time, while in TC we cheated with the POSIX base time: consequence many tests in the 85 testsuite fail.
 
 
Bernard Giroud
Credit Lyonnais (Suisse) SA
----- Original Message -----
From: Tim Nixon
Sent: Monday, November 29, 2004 9:12 PM
Subject: [open-cobol-list] What is the Status of Intrinsic (internal) cobol FUNCTIONs


Hi, Can you tell me the status of the Intrinsic functions in open-cobol? I know they were being worked on and we have some code that uses ORD-MIN, ORD-MAX, CURRENT-DATE, INTEGER-OF-DATE (and a few others). We were considering writing these ourselves if need be but I don’t want to jump the gun if they’re a few weeks or months away and my implementation of intrinsics would be different than yours..

Thanks again

 

Tim Nixon

----- Original Message -----
From: Tim Nixon
Sent: Tuesday, November 30, 2004 2:55 PM
Subject: [Maybe Spam] [open-cobol-list] looking for ideas: more on internals (intrinsics)


We would like to add some of the internal cobol routines for code we’re supporting. For example: ORD-MAX, ORD-MIN, CURRENT-DATE and the like. My initial concept is to write these in c, and modify the compiler to understand the FUNCTION statement and map it to the appropriate library routine, It would be important that the compiler could verify that each was being supplied with the correct # (and type in the general sense) of arguments. The implementation of the intrinsics would match the standard for size, type etc for both arguments and return values. I also would like to make the implementation robust in the sense that if we began with a few routines we could easily add others as needed without modifying large sections of code. Does anyone have any ideas that would be beneficial for this project?

 

Tim Nixon



********************************************************************************
This e-mail contains confidential information or information belonging
to the Credit Lyonnais Group entity sending it and is intended solely
for the addressees. Any views expressed in this message are those of
the individual sender and its contents do not constitute a commitment
by Credit Lyonnais unless confirmed by letter or fax. The unauthorised
disclosure, use, dissemination or copying (either whole or partial) of
this e-mail, or any information it contains, is prohibited. E-mails are
susceptible to alteration and their integrity cannot be guaranteed.
Internet communications are not secured and therefore Credit Lyonnais
shall not be liable for this e-mail if modified or falsified. If you
are not the intended recipient of this e-mail, please delete it
immediately from your system and notify the sender of the wrong
delivery and the mail deletion.
********************************************************************************

reply via email to

[Prev in Thread] Current Thread [Next in Thread]