COMPILATION LISTING OF SEGMENT gcos_time_convert_ Compiled by: Multics PL/I Compiler, Release 28b, of April 11, 1983 Compiled at: Honeywell LCPD Phoenix, System M Compiled on: 09/09/83 1146.0 mst Fri Options: optimize map 1 /* *********************************************************** 2* * * 3* * Copyright, (C) Honeywell Information Systems Inc., 1982 * 4* * * 5* * Copyright (c) 1972 by Massachusetts Institute of * 6* * Technology and Honeywell Information Systems, Inc. * 7* * * 8* *********************************************************** */ 9 10 11 /* **************************************************************************************** 12* ****************************************************************************************** 13* * 14* * 15* * 16* * T I M E C O N V E R S I O N P R O C E D U R E 17* * 18* * 19* * This procedure takes as an input argument a fixed bin(52) representation of 20* * time in microseconds. It converts this value to a character string of length 21* * nineteen which contains the time in minutes, seconds, and tenths 22* * 23* * 24* * WRITTEN BY DICK SNYDER SEPTEMBER 25,1970 25* * MODIFIED BY T.CASEY DECEMBER 1972 26* * 27* * 28* ******************************************************************************************* 29* ***************************************************************************************** */ 30 /* */ 31 gcos_time_convert_: proc (timeused, returntime); 32 33 34 dcl returntime char (19); /* time returned */ 35 dcl (timeused, timework) fixed bin(52); /* time interval */ 36 dcl digits (0: 9) char (1) internal static 37 init ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); /* ascii 0-9 */ 38 dcl (i, n) fixed bin(24); 39 dcl v (14) fixed bin(24)int static init ((10)10, 6, 10, 0, 10); /* divide values */ 40 41 dcl (divide, mod, substr) builtin; 42 43 returntime = " mins . secs"; /* init return string */ 44 timework = divide (timeused, 100000, 52, 0); /* convert to tenths of secs */ 45 46 do i = 14, 12 by -1 to 11, 4 by -1 to 1; /* divide loop */ 47 substr (returntime, i, 1) = digits (mod (timework, v (i))); /* grab digit */ 48 timework = divide (timework, v (i), 17, 0); /* reduce time */ 49 end; 50 return; 51 end gcos_time_convert_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 09/09/83 1007.1 gcos_time_convert_.pl1 >spec>on>09/07/83-gcos>gcos_time_convert_.pl1 NAMES DECLARED IN THIS COMPILATION. IDENTIFIER OFFSET LOC STORAGE CLASS DATA TYPE ATTRIBUTES AND REFERENCES (* indicates a set context) NAMES DECLARED BY DECLARE STATEMENT. digits 000016 constant char(1) initial array unaligned dcl 36 ref 47 divide builtin function dcl 41 ref 44 48 i 000102 automatic fixed bin(24,0) dcl 38 set ref 46* 47 47 48* mod builtin function dcl 41 ref 47 returntime parameter char(19) unaligned dcl 34 set ref 31 43* 47* substr builtin function dcl 41 set ref 47* timeused parameter fixed bin(52,0) dcl 35 ref 31 44 timework 000100 automatic fixed bin(52,0) dcl 35 set ref 44* 47 48* 48 v 000000 constant fixed bin(24,0) initial array dcl 39 ref 47 48 NAME DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. n automatic fixed bin(24,0) dcl 38 NAME DECLARED BY EXPLICIT CONTEXT. gcos_time_convert_ 000034 constant entry external dcl 31 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 160 170 131 170 Length 336 131 10 131 26 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME gcos_time_convert_ 70 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME gcos_time_convert_ 000100 timework gcos_time_convert_ 000102 i gcos_time_convert_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. return mod_fx3 ext_entry divide_fx3 NO EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 31 000030 43 000041 44 000046 46 000053 47 000057 48 000071 49 000077 50 000127 ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved