Display PostScript System

Size: px
Start display at page:

Download "Display PostScript System"

Transcription

1 Display PostScript System Adobe Systems Incorporated Global Index to the Display PostScript Reference Manuals Introduction: Perspective for Software Developers Client Library Reference Manual Client Library Supplement for X pswrap Reference Manual Display PostScript Toolkit for X 15 April 1993 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose, CA

2

3 Global Index to the Display PostScript Reference Manuals Symbols #define macros in a wrap PSW-9 #include PSW-9, TK-34 #line directives in debugging PSW-10 %stdin CL-25, 76 %stdout CL-76 ( ) PSW-12 = CL-45 == CL-15, 45 { } PSW-12 A Adobe Developer Support public access file server INTRO-5 technical publications INTRO-4, 5 telephone number INTRO-5 Adobe Developers Association INTRO-5 arguments in pswrap declaring PSW-14, 18 input PSW-14, 18 output PSW-15 arrays in pswrap boolean PSW-22 character PSW-18 encoded number strings PSW-24 number PSW-22 output PSW-30 receiving a series of elements PSW-31 B backstop handlers automatically installed CL-19 error handler CL-19, 39, 69, 76 See also DPSDefaultTextBackstop text handler CL-19 binary object sequence CL-6, 10, 21, 54, extended CL-59 header CL-57 names CL-56 binary-encoded token CL-22 bit gravity, offsets CLX-97 blocked on input, context CLX-103 boolean CL-25, 43, 70, 76, PSW-18, 22, 28 boolean input arguments in pswrap PSW-18 boolean series in pswrap PSW-23 buffers CL-22, CLX-109 data CL-22 See also pixmaps byte order CL-21 C C language and PostScript language CL-5, 26 Client Library header files CL-5 comments in wraps PSW-12 passing correct types CL-5 single-operator procedures CL-43 wrapped procedures CL-5, PSW-8 33 call stack CL-73 INDEX INDEX-3

4 call stack, unwinding CL-73 callback procedures CL-14 15, CLX-87, 117, TK exception handling CLX-117 flow of control CL-14 chained contexts CL-20, 37 character input arguments in pswrap PSW-20 characters receiving from the interpreter PSW-30 CheckPSResourceTime TK-68 child context CL-20 Client Library CL-1 79 defined CL-3 header files CL-5 Client Library Supplement for X CLX clientsync CLX-103, 115, 137 clipping CLX See also user path clipping color CL-27, CLX-119 in Display PostScript CLX-119 programming tips CLX-120 color cube CL-6, TK-13 colorinfo array CLX colormap CLX-130, TK-13 command line makepsres utility TK-75 pswrap translator PSW-9 connecting to the X server CLX-85 context CL-7, CLX child CL-20 creating CL-7 9, 24, CLX-85, 127, 130 current CL-9, 42 data structures CL-7 defined CL-4 destroying CL-13 errors in CL-17, CLX-101 finding current CL-9, 64 forked CL-24 freezing CLX-115 identifier CLX-108 input and output CL-3 interrupting CL-13, 39 monitoring status CLX-102 output-handling mechanisms CL-14 parent CL-20 sending data to CL-9, 21 setting current CL-42 shared space CL-13 sharing TK-5 specifying in pswrap PSW-26 synchronizing with application CL-23 system specific CL-7 waiting CLX-114 context management utilities TK-5 14 control points CLX-94 coordinate conversions CLX-91 programming tips CLX-117 user space to X CLX-118 X to user space CLX-118 coordinate system CL-26, CLX conversions CLX-91 data types CL-43 CTM. See current transformation matrix current context CL-9 finding CL-64 setting CL-42, 65 current transformation matrix CLX-117, PSW-22 currentcontext CLX-108 currentfile CL-25 currentgray CL-44, PSW-15 currentxgcdrawable CLX-137 currentxgcdrawablecolor CLX-138 currentxoffset CLX-139, 140 curveto CL-43 custom operators CLX-121, 137 cvn CL-70 D data structures in dpsxclient.h CLX-124 DEBUG_SYNC CLX-101 DEBUGGING CLX-101 debugging CLX-101 default colormap CLX-87 default context TK-5 defaultpath TK-70 defineps PSW-11 defineuserobject CLX-98 destroying a context CL-13 destroying a space CL-13 detach CLX-112 developer support. See Adobe Developer Support Developers Association. See Adobe Developers Association device space CLX-91 directory component of resource database file TK-63 disablemask CLX-104, 135 discard mode, makepsres TK-76 Display PostScript and X imaging, mixing CLX-94 Display PostScript Client Library. See Client Library Display PostScript Toolkit TK-1 59 procedures TK type definitions TK-3 DPS procedure name prefix CL-42 DPS_DEF_TOKENTYPE CL-57 dps_err_closeddisplay CLX-124 dps_err_deadcontext CLX-124 dps_err_encodingcheck CLX-124 dps_err_invalidaccess CLX-124 dps_err_invalidcontext CL-70 dps_err_nametoolong CL-70 dps_err_ps CL-70 dps_err_recursivewait CLX-107, 124 dps_err_recursivewait description CLX-107 dps_err_resulttagcheck CL-70 dps_err_resulttypecheck CL-70 dps_float TK-17 dps_indexed CLX-113 dps_long TK-17 dps_short TK-17 dps_status_failure TK-4 dps_status_illegal_value TK-4 dps_status_imaging_incomplete TK-4 dps_status_no_extension TK-4 dps_status_postscript_error TK-4 INDEX-4 Global Index to the Display PostScript Reference Manuals

5 dps_status_success TK-4 dps_status_unregistered_context TK-4 dps_strings CL-22, CLX-113, 124 DPSAwaitReturnValues CL-55 56, 63 DPSBinObjGeneric CL DPSBinObjReal CL DPSBinObjRec CL DPSBinObjSeqRec CL-61 DPSBinObjSeqWrite CL-54, 57, 64 DPSChainContext CL-20, 38 DPSChangeEncoding CL-12, 22, CLX , 126 dpsclient.h CL-5, 7, 35, 37, 67 defined CL-35 procedures CL-37 DPSContext CL-4, 7, 36, 60, 76, CLX-85, 108, PSW-18, 26 for forked context CL-24 DPSContextFromContextID CL-24, CLX , 126 DPSContextRec CL-4, 7 8, 14, 17, 18, 36, 60, CLX-85 for forked context CL-24 DPSCreateTextContext CL-9, 22, CLX-127 DPScurrentgray CL-44 DPScurrentgstate CL-45 DPSDefauItTextBackstop CL-9 DPSDefaultErrorProc CL-14 18, 33, 38, 67 71, DPSDefaultTextBackstop CL-33, CLX-127 DPSDefineAsUserObj TK-15 DPSDefinedType CL-61 DPSdefineuserobject CL-44 DPSDestroyContext CL-13, 38, CLX-102, 109, 128, TK-23 DPSDestroySharedContext TK-23 DPSDestroySpace CL-13, 38, CLX-102, 113, 128 DPSequals CL-45 DPSequalsequals CL-45 DPSErrorCode CL-37, 75 DPSErrorProc CL-35 DPSEventDelivery CLX-125 dpsexcept.h CL-73, CLX-116 DPSExtendedBinObjSeqRec CL-59, 61 DPSFlushContext CLX-109 dpsfriends.h CL-5, CLX-116 data structures CL-59 procedures CL-54, 63 DPSgetchararray CL-44 DPSGetCurrentContext CL-9, 64 DPSGetCurrentErrorBackstop CL-39 DPSGetCurrentTextBackstop CL-19, 39 DPSHitUserPath TK-21 DPSinfill CL-44 DPSinstroke CL-44 DPSInterruptContext CL-13, 39, CLX-103, 115 DPSinueofill CL-45 DPSinufill CL-45 DPSinustroke CL-45 DPSLastUserObjectIndex CLX-98, 125 DPSMapNames CL-56, 64 DPSNameEncoding CL-61, CLX-113 DPSNameFromIndex CL-65 DPSNewUserObjectIndex CLX-98, 128 DPSNumberFormat TK-17 dpsops.h CL-5, 9, 42, CLX-116 procedure declarations CLX-140 DPSPointer TK-3 DPSPrintf CL-10, 11, 25, 39, CLX-101 DPSProcs CL-61 DPSProcsRec CL-62 DPSProgramEncoding CL-62 DPSRedefineUserObj TK-16 DPSReserveUserObjIndices TK-16 DPSResetContext CL-39, 77 DPSResultsRec CL-55, 62 DPSselectfont CL-45 DPSsendchararray CL-44 DPSsendfloat CL-44 DPSsendfloatarray CL-44 DPSsendint CL-44 DPSSetContext CL-9, 42, 65 when to call CL-9 DPSsetdash CL-45 DPSSetErrorBackstop CL-19, 39 DPSSetErrorProc CL-40 DPSsetfont CL-45 DPSsetgray CL-45 DPSsetgstate CL-45 DPSSetResultTable CL-55, 66 DPSSetTextBackstop CL-19, 40 DPSSetTextProc CL-40 DPSSpace CL-63, CLX-108 DPSSpaceFromContext CL-40 DPSSpaceProcsRec CL-63 DPSSpaceRec CL-13, 63, CLX-108 DPSTextProc CL-36 DPSuappend CL-45 DPSueofill CL-45 DPSufill CL-45 DPSUnchainContext CL-20, 40 DPSUndefineUserObj TK-16 DPSUpdateNameMap CL-57, 66 DPSUserPathAction TK-18 DPSUserPathOp TK-18 DPSustroke CL DPSustrokepath CL-45 DPSversion CL-45 DPSWaitContext CL-23, 40, CLX-107, DPSWriteData CL-10, 12, 41, PSW-12 DPSWritePostScript CL-10, 12, 41, 76, CLX-111, 114 DPSWriteStringChars CL-54, 66 DPSWriteTypedObjectArray CL-54, 66 dpsxclient.h CLX-83, 116, 124 data structures CLX-124 procedures CLX-126 dpsxcommon.h TK-3, 5, 22 dpsxpreview.h TK-22 dpsxshare.h TK-5, 15 DPSxshow CL dpsxuserpath.h TK-17 DPSxyshow CL-45 DPSyshow CL-45 DURING CL-74 INDEX Global Index to the Display PostScript Reference Manuals INDEX- 5

6 E E_RETURN CL-76 E_RETURN_VOID CL-76 enablemask CLX-104, 135 encoded number string PSW-24 encoding CLX-110 encoding conversions CLX-109 encoding, PostScript language CL-21, 37, 61, 62 writing to a context CL-12 END_HANDLER CL-74 end-of-file (EOF) indicator CL-25 endps PSW-11 EnumeratePSResourceFiles TK-69 EOF. See end-of-file (EOF) indicator error codes CL-37, 69 extended CLX-124 error handler CL-17, 67 71, CLX-87, 100 error handling callback procedures CL-14, 17 context delays CL-14 error handler CL-17, 19, PostScript language errors CL-70, See also backstop handlers, error handler with resource location library TK-73 error messages, from pswrap PSW error recovery CL-18 error, PostScript language context CLX-101 protocol CLX-100 See also error handling errorproc CLX-87, 127 event dispatching CLX-105 handlers CLX-105 handling CLX-105 event delivery, pass-through CLX-106 eventmask CLX-89, 130 exception handler example CL-77 exception handling CL-73 79, CLX-117 Exception.Code CL-75 Exception.Message CL-75 executable PostScript name object PSW-21 execution context. See context execution status CLX-102 exposure events CLX-95 extended binary object sequence CL-59 extern declarations PSW-9 F fgets TK-22, 25 filenameforall CLX-119 files dpsclient.h CL-5 dpsfriends.h CL-5, CLX-116 dpsops.h CL-5, CLX-116 dpsxclient.h CLX-83, 116, 124 dpsxcommon.h TK-3, 5, 22 dpsxpreview.h TK-22 dpsxshare.h TK-5 dpsxuserpath.h TK-17 FontSample.h TK-53 FontSB.h TK-34 header CL-5 libdps.a TK-3 libdpstk.a TK-3 libdpstkxm.a TK-3 libpsres.a TK-3 psops.h CL-5, CLX-116 PSres.h TK-67 PSres.upr TK-67 Xutil.h CLX-89 findfont CLX-119 float parameters to single-operator procedures CL-43 floor CLX-119 flush CL-23, CLX-109 font sampler TK callbacks TK-58 children TK-58 Display button TK-54 filters TK-55 procedures TK-59 Reset Filters button TK-56 resource set TK-56 selection criteria TK-55 font selection panel TK Apply button TK-37 callback procedures TK callback resource set TK-44 Cancel button TK-35 child resource set TK-43 children TK-43 OK button TK-36 Preview button TK-36 preview window TK-35 procedures TK Reset button TK-37 resource set TK-39 Sampler button TK-36 fonts programming tips CLX-119, 121 FontSample.h TK-53 FontSampler widget TK-53 FontSB.h TK-34 FontSelect defaults file TK-34 FontSelectionBox widget TK-34 fontselectionboxwidgetclass class pointer TK-34 fork CL-24, 26, CLX-108, , 126 format string in DPSPrintf CL-11 FreePSResourceStorage TK-70 freezing a context CLX-115 FROZEN CLX-137 FSBCancelSampler TK-59 FSBCreateSamplerCallbackRec TK-48 FSBDownloadFontName TK-48 FSBFaceSelectCallbackRec TK-47 FSBFindAFM TK-48 FSBFindFontFile TK-48 FSBFontFamilyFaceToName TK-49 FSBFontNameToFamilyFace TK-49 FSBGetFaceList TK-49 FSBGetFamilyList TK-49 FSBGetTextDimensions TK-50 charpath TK-50 limitcheck TK-50 stringwidth TK-50 FSBMatchFontFace TK-50 FSBRefreshFontList TK-51 FSBSetFontFamilyFace TK-51 INDEX-6 Global Index to the Display PostScript Reference Manuals

7 FSBSetFontName TK-51 FSBSetFontSize TK-51 FSBUndefineUnusedFonts TK-51 FSBValidateCallbackRec TK-47 G graphics state parameters CLX-121 gray level, getting current CL-11 grayramp CLX-89, 130 grestore CLX-139 gsave CLX-139 gstate objects TK-6 H handleerror CL-18, 71 HANDLER CL-74 handling PostScript language errors CL-70 header files programming tips CLX-116 header files, Client Library CL-5 I identifiers CLX-108 imaging model CL-26, CLX-84 immediately evaluated names PSW-13 implementation, limits CLX-112 include files. See header files initialization CL-4, CLX-85 interactive feedback CLX-94 interface files. See header files interpreter, PostScript CLX-84 interrupt CL-13, CLX-115 interrupting a running PostScript program CL-13 invalid context CL-17, 70 K keep mode, makepsres TK-76 L libdps.a TK-3 libdpstk.a TK-3 libdpstkxm.a TK-3 libpsres.a TK-3, 67 libraries, locating TK-1 lineto CL-43 ListPSResourceFiles TK-69, 70 ListPSResourceTypes TK-72 lock CLX-112 M makepsres utility TK-1, mask status event CLX-125 mask, status event CLX-103 memory management TK-73 monitor CLX-112 Motif libdpstkxm.a library TK-3 moveto CL-43 multiple servers, contexts on CLX-112 N name encoding CL-22 name mapping CL-56, 64 nextmask CLX-104, 135 number input arguments in pswrap PSW-20 receiving in wraps PSW-28 sending a series of PSW-23 numstring, pwsrap data type PSW-24 O objects gstate TK-6 offset, in coordinate conversion CLX-92 operand stack CL-5, 44, 77 output events CLX-105 P parent context CL-20 parentheses within a wrap PSW-13 pass-through event delivery CLX-105 pixmaps CL-8, 23 code example TK pop PSW-29 portability CLX PostScript language preparing a program for inclusion CL-6 resources, locating TK sending code to interpreter CL-4 PostScript operators, X-specific CLX print CL-14, 15 printf CL-39 printobject CL-37, 55 private VM CL-7 protocol errors CLX-100 Single-operator procedures prefixed by PS are indexed under DPS PS procedure name prefix CL-42 PSFROZEN CLX-103, 115 PSitransform CL-33 PSNEEDSINPUT CLX-103 psops.h CL-5, 9, 42, CLX-116 procedure declarations CL-45 CL-53, CLX-140 PSres.h TK-67 PSres.upr TK-67 PSResFileWarningHandlerProc TK-74 PSResFontOutline TK-67 PSResFree TK-71 PSResFreeProc TK-74 PSResMallocProc TK-74 PSResourceEnumerator TK-68 PSRESOURCEPATH TK-66 psresourcepathoverride TK-68, 69 PS-Resources-1.0 TK-67 PS-Resources-Exclusive-1.0 TK-67 PSResReallocProc TK-74 PSRUNNING CLX-103 PSSTATUSERROR CLX-103 pstack PSW-16 PSWGetTransform CLX-118 pswrap translator INTRO-2, CL-3, PSW-7 33 character type PSW-20 command-line options PSW-9 declaring input PSW-18 INDEX Global Index to the Display PostScript Reference Manuals INDEX- 7

8 input arguments PSW-14 number arguments PSW-20 output arguments PSW-15 output of CL-6, 54 PSZOMBIE CLX-103, 109 R RAISE CL-71, 75, 76, 77 rangecheck CLX-137 rectfill CL-6, PSW-24 rectviewclip CLX-95 repainting CLX RERAISE CL-75, 79 resizing a window CLX-96 resoluting, programming tips CLX-120 resource data component of resource database file TK-63 resource database file TK upr suffix TK-67 components of TK-62 creating TK-75 directory component TK-63 example TK-64 locating TK-66 parsing TK-67 PSRESOURCEPATH TK-66 resource data component TK-63 resource types TK-63 string component TK-63 resource ID CLX-108 resource sharing CLX-112 resource types component of resource database file TK-63 resource, predefined types TK-65 resource. See resource database file resourcename TK-70 resourcetype TK-70 result table CL-55, 62 resynchandleerror CL-71, 76 resyncstart CL-76 return values CL-55, TK-4 conventions CL-55 rewind TK-22 RGB CL-27, CLX-87, 120, 140, TK-14 RGB_DEFAULT_MAP CLX-87 RGB_GRAY_RAMP CLX-87 rotate CLX-117 S scale CLX-117 scrolling CLX-93 selectfont CLX-119 series booleans PSW-23 numbers PSW-23 setgray CL-27 setlinewidth CL-27 setmatrix CLX-117 setrgbcolor CL-27, CLX-90, 119 setting current context CL-42 setxgcdrawable CLX-86, 121, 139 setxgcdrawablecolor CLX-121, 139 setxoffset CLX-92, 96, 122, 140 setxrgbactual CLX-140 sharing resources CLX-112 show CL-11 showpage CLX-115 single-operator procedures CLX-140 associating data types with CL-43 C types CL-43 parameter types CL-43 space CL-13, CLX-87 stackunderflow CLX-137 status events CLX masks CLX stdout CL-19 stop CL-13 stopped CL-76 string component of resource database file TK-63 stringwidth PSW-29 synchronizing CLX-113 application with context CL-25 contexts CL-23 forced CLX-101 wrap with interpreter PSW-31 system-specific contexts CL-7 T tagging return values CL-55 termination CLX-102 termination tag CL-55 text handler CL-15 17, CLX-87, 127 as side effect of calling wrap CL-15 called by error handler CL-70 default CL-15 X example CL-16 CL-17 transformation, linear CLX-91 translate CL-42 translation of encodings CL-22 typecheck CL-70, CLX-137, PSW-28 types, status event CLX-125 U undefined error CLX-101, 137 unsigned integers PSW-20 unwinding the call stack CL-73 user coordinate system CL-26 user names encoding CL-61 managing CL-56 CL-59 mapping into index CL-64 too long CL-37 user objects CL-45, CLX-98, TK as arguments CL-45 indices CLX procedures TK user path CLX-96, TK procedures TK structures and type definitions TK user space CL-26, CLX-91 userdict CL-77 UserObjects array PSW-18 V virtual memory private VM CL-7 shared VM CL-13 VM. See virtual memory W waiting context CLX-114 INDEX-8 Global Index to the Display PostScript Reference Manuals

9 window coordinate system CL-26 window, resizing CLX-96 wraps INTRO-2, CL-5 6, 10, 32, CLX-107 body PSW defining a wrap PSW-11 example CL-32, PSW input arguments PSW-8 output arguments PSW-8 syntax PSW-32 writestring CL-15 X X and Display PostScript imaging, mixing CLX-94 X coordinate system CLX-92 X primitives CLX X resource ID. See XID X Window System CL-8 XCheckIfEvent CLX-116 XCloseDisplay CLX-102 XCopyArea CLX-93 94, XCreateGC CLX-85 XCreateSimpleWindow CLX-85 XDPSCaptureContextGState TK-8 XDPSChainTextContext TK-8 XDPSCheckImagingResults TK-23, 27 XDPSContextFromSharedID CLX-113, 129 XDPSContextFromXID CLX-108 XDPSCreateContext CLX-85, 89 90, 130, 139 XDPSCreatePixmapForEPSF TK-22, 28 XDPSCreateSimpleContext CL-9, 33, CLX-86 89, 131 default colormap CLX-87 XDPSDestroySharedContext TK-9 XDPSDispatchEvent CLX-106, 131 XDPSEmbeddedEPSFGetsFunc TK-22, 29 XDPSEmbeddedEPSFRewindFunc TK-22 XDPSExtensionPresent TK-9 XDPSFileGetsFunc TK-22, 30 XDPSFileRewindFunc TK-22, 30 XDPSFindContext CLX-108, 132 XDPSFreeContextGState TK-9 XDPSFreeDisplayInfo TK-9 XDPSGetContextStatus CLX-103, 132 XDPSGetDefaultColorMaps CLX-132 XDPSGetsFunction TK-25 XDPSGetSharedContext TK-5, 9 XDPSImageFileIntoDrawable TK-22 25, createmask TK-22 dps_status_imaging_incomplete TK-25 waitforcompletion TK-23 XDPSIsDPSEvent CLX-133 XDPSIsOutputEvent CLX-133 XDPSIsStatusEvent CLX-106, 133 XDPSPixelsPerPoint TK-22, 32 XDPSPopContextGState TK-10 XDPSPopContextParameters TK-10 XDPSPosition TK-26 XDPSPushContextGState TK-10 XDPSPushContextParameters TK-11 XDPSRegisterContext TK-5, 11 XDPSRegisterStatusProc CLX-103, 134 XDPSRewindFunction TK-26 XDPSSetContextDepth TK-11 XDPSSetContextDrawable TK-12 XDPSSetContextGrayMap TK-12 XDPSSetContextGState TK-12 XDPSSetContextParameters TK-13 XDPSSetContextRGBMap TK-13 XDPSSetEventDelivery CLX-105, 134 XDPSSetFileFunctions TK-33 XDPSSetImagingTimeout TK-33 XDPSSetStatusMask CLX , 135 XDPSSpaceFromSharedID CLX-113, 135 XDPSSpaceFromXID CLX-108, 135 XDPSStandardColormap TK-7 XDPSStatusProc CLX-126 XDPSUnfreezeContext CLX-103, 136 XDPSUnregisterContext TK-14, 23 XDPSUpdateContextGState TK-14 XDPSXIDFromContext CLX-108, 136 XDPSXIDFromSpace CLX-108, 136 XFillRectangle CLX-94 XFlush CLX-109 XID XIfEvent CLX-116 XmManager TK-34, 53 XNextEvent CLX-105 XOpenDisplay CLX-85 XSetWindowColormap CLX-89 XStandardColormap CLX-90 XtAppProcessEvent CLX-106 XtDispatchEvent CLX-106 XtNapplyCallback TK-44 XtNautoPreview TK-36, 40 XtNcancelCallback TK-37, 44 XtNcontext TK-40 XtNcreateSamplerCallback TK-44 XtNdefaultResourcePath TK-40 XtNdismissCallback TK-58 XtNfaceSelectCallback TK-45 XtNfontFace TK-41 XtNfontFaceMultiple TK-41 XtNfontFamily TK-41 XtNfontFamilyMultiple TK-41 XtNfontName TK-41 XtNfontNameMultiple TK-41 XtNfontSelectionBox TK-57 XtNfontSize TK-41 XtNfontSizeMultiple TK-41 XtNgetAFM TK-41 XtNgetServerFonts TK-41 XtNmakeFontsShared TK-41 XtNmaxPendingDeletes TK-42 XtNminimumHeight TK-57 XtNminimumWidth TK-57 XtNnoFamilyFontMessage TK-57 XtNnoFontMessage TK-57 XtNnoMatchMessage TK-57 XtNnoRoomMessage TK-57 XtNnoSelectedFamilyMessage TK-57 XtNnoSelectMessage TK-57 INDEX Global Index to the Display PostScript Reference Manuals INDEX- 9

10 XtNokCallback TK-36, 45 XtNpreviewOnChange TK-42 XtNpreviewString TK-42 XtNresetCallback TK-45 XtNresourcePathOverride TK-42 XtNshowSampler TK-43 XtNshowSamplerButton TK-43 XtNsizeCount TK-43, 57 XtNsizes TK-43, 58 XtNundefUnusedFonts TK-43 XtNuseFontName TK-43 XtNvalidateCallback TK-36, 45 Xutil.h CLX-89 xyshow PSW-24 Z zombie context CLX-109 INDEX-10 Global Index to the Display PostScript Reference Manuals

Display PostScript System

Display PostScript System Display PostScript System Adobe Systems Incorporated Client Library Supplement for X 15 April 1993 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose, CA 95110 http://partners.adobe.com/

More information

Display PostScript System

Display PostScript System Display PostScript System Adobe Systems Incorporated pswrap Reference Manual 15 April 1993 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose, CA 95110 http://partners.adobe.com/

More information

Display PostScript System

Display PostScript System Display PostScript System Adobe Systems Incorporated Display PostScript Toolkit for X 15 April 1993 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose, CA 95110 http://partners.adobe.com/

More information

PostScript Internals Graphics II Spring 1999

PostScript Internals Graphics II Spring 1999 PostScript Internals 15-463 Graphics II Spring 1999 Background PostScript raster image processor for Mac All Level 1 features Some support for color and multi-bit devices Undergrad independent study: MacRIP

More information

Postscript Intro. References. What is Postscript? Hello World! in Ghostscript. CSE 413, Autumn 2005 Programming Languages. Page description language

Postscript Intro. References. What is Postscript? Hello World! in Ghostscript. CSE 413, Autumn 2005 Programming Languages. Page description language References Postscript Intro CSE 413, Autumn 2005 Programming Languages http://www.cs.washington.edu/education/courses/413/05au/ Postscript Language Reference, Adobe Postscript Language Tutorial and Cookbook,

More information

Hello world. 2. Stack-based Programming. Oscar Nierstrasz

Hello world. 2. Stack-based Programming. Oscar Nierstrasz 2. Stack-based Programming Oscar Nierstrasz /Times-Roman findfont % look up Times Roman font 18 scalefont % scale it to 18 points setfont % set this to be the current font 100 500 moveto % go to coordinate

More information

X and DPS. Juliusz Chroboczek. 27 February 2001, updated 30 October 2006

X and DPS. Juliusz Chroboczek. 27 February 2001, updated 30 October 2006 Table of Contents Juliusz Chroboczek 27 February 2001, updated 30 October 2006 Notice of Obsolescence and Removal from X.Org Releases...3 Introduction...3 The DPS client side...3 The DPS server side...5

More information

Emulation of the execform Operator

Emulation of the execform Operator Emulation of the execform Operator Adobe Developer Support Technical Note #5113 31 March 1992 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose, CA 95110 http://partners.adobe.com/

More information

Evaluation of postfix

Evaluation of postfix Postfix Infix notation: Operator appears between operands: 2 + 3 5 3 + 6 9 Implied precedence: 2 + 3 * 4 2 + (3 * 4 ), not (2 + 3 ) * 4 Prefix notation: Operator precedes operands: + 2 3 5 + 2 * 3 5 (+

More information

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files CSC209 Review CSC209: Software tools Unix files and directories permissions utilities/commands Shell programming quoting wild cards files ... and systems programming C basic syntax functions arrays structs

More information

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files. Compiler vs.

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files. Compiler vs. CSC209 Review CSC209: Software tools Unix files and directories permissions utilities/commands Shell programming quoting wild cards files... and systems programming C basic syntax functions arrays structs

More information

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites:

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites: C Programming Code: MBD101 Duration: 10 Hours Prerequisites: You are a computer science Professional/ graduate student You can execute Linux/UNIX commands You know how to use a text-editing tool You should

More information

PDF Library v7.0.7plus/dli v7.0.7 Release Notes

PDF Library v7.0.7plus/dli v7.0.7 Release Notes Revision Date: September 13, 2006 Case ID: n/a Description: Support has been added to PDPageDrawContentsToMemory for DeviceRGBA and Lab colorspaces for rasterization. These can be used as colorspace names

More information

Package epsdice a scalable dice font

Package epsdice a scalable dice font Package epsdice a scalable dice font 2007/02/15 Version 2.1 Thomas Heim (thomas.heim@unibas.ch) 1 Introduction Dice fonts are already available in metafont format. (I should know, I wrote one myself: dice3d.mf.)

More information

Computer Systems A Programmer s Perspective 1 (Beta Draft)

Computer Systems A Programmer s Perspective 1 (Beta Draft) Computer Systems A Programmer s Perspective 1 (Beta Draft) Randal E. Bryant David R. O Hallaron August 1, 2001 1 Copyright c 2001, R. E. Bryant, D. R. O Hallaron. All rights reserved. 2 Contents Preface

More information

Project phase 1 Scanner front-end assigned Tuesday 2 September, due Tuesday 16 September

Project phase 1 Scanner front-end assigned Tuesday 2 September, due Tuesday 16 September CS 351 Design of Large Programs, Fall 2003 1 Project phase 1 Scanner front-end assigned Tuesday 2 September, due Tuesday 16 September 1.1 Task Write Java classes and interfaces to implement the scanner

More information

In the CERTAINTY project, an application is defined as a network of independent processes with the following features:

In the CERTAINTY project, an application is defined as a network of independent processes with the following features: C/C++ Coding Guide G. Giannopoulou, P. Huang, N. Stoimenov, L. Thiele April 15, 2014 This document describes how to program DOL-Critical applications using C/C++ as programming language. To be able to

More information

References. Topic #15: Postscript Intro. What is Postscript? Hello World! in Ghostscript. Page Description Language. Hello World!

References. Topic #15: Postscript Intro. What is Postscript? Hello World! in Ghostscript. Page Description Language. Hello World! References Topic #15: Postscript Intro CSE 413, Autumn 2004 Programming Languages http://www.cs.washington.edu/education/courses/413/04au/ Postscript Language Reference, Adobe Postscript Language Tutorial

More information

CSC209 Review. Yeah! We made it!

CSC209 Review. Yeah! We made it! CSC209 Review Yeah! We made it! 1 CSC209: Software tools Unix files and directories permissions utilities/commands Shell programming quoting wild cards files 2 ... and C programming... C basic syntax functions

More information

Text and Graphics. Postcript is a Page Description Language! Paths

Text and Graphics. Postcript is a Page Description Language! Paths Postcript is a Page Description Language! Text and Graphics CSE 413, Autumn 2005 Programming Languages http://www.cs.washington.edu/education/courses/413/05au/ In the previous lectures I talked mostly

More information

Synopsys Static Analysis Support for SEI CERT C Coding Standard

Synopsys Static Analysis Support for SEI CERT C Coding Standard Synopsys Static Analysis Support for SEI CERT C Coding Standard Fully ensure the safety, reliability, and security of software written in C The SEI CERT C Coding Standard is a list of rules for writing

More information

Problem Solving and 'C' Programming

Problem Solving and 'C' Programming Problem Solving and 'C' Programming Targeted at: Entry Level Trainees Session 15: Files and Preprocessor Directives/Pointers 2007, Cognizant Technology Solutions. All Rights Reserved. The information contained

More information

Simple Text Setting Calculations for PostScript Language Drivers

Simple Text Setting Calculations for PostScript Language Drivers Simple Text Setting Calculations for PostScript Language Drivers Adobe Developer Support Technical Note #5041 31 March 1992 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose,

More information

Reader. PDF Writer. PostScript File. Distiller. Control whether or not the Save File As dialog box is displayed.

Reader. PDF Writer. PostScript File. Distiller. Control whether or not the Save File As dialog box is displayed. In This Issue Integrating with the Acrobat File-Creation Products Volume 3, Number 11 p 1 Integrating with the Acrobat File-Creation Products The previous two articles in this series described Adobe Acrobat

More information

Altering the Control Flow

Altering the Control Flow Altering the Control Flow Up to Now: two mechanisms for changing control flow: Jumps and branches Call and return using the stack discipline. Both react to changes in program state. Insufficient for a

More information

Motivation was to facilitate development of systems software, especially OS development.

Motivation was to facilitate development of systems software, especially OS development. A History Lesson C Basics 1 Development of language by Dennis Ritchie at Bell Labs culminated in the C language in 1972. Motivation was to facilitate development of systems software, especially OS development.

More information

Programming refresher and intro to C programming

Programming refresher and intro to C programming Applied mechatronics Programming refresher and intro to C programming Sven Gestegård Robertz sven.robertz@cs.lth.se Department of Computer Science, Lund University 2018 Outline 1 C programming intro 2

More information

UNIT 3

UNIT 3 UNIT 3 Presentation Outline Sequence control with expressions Conditional Statements, Loops Exception Handling Subprogram definition and activation Simple and Recursive Subprogram Subprogram Environment

More information

Index. A Aim of book, 3 Approach options taken here, 1 toolkits, 1 Approaches to options selection, 56

Index. A Aim of book, 3 Approach options taken here, 1 toolkits, 1 Approaches to options selection, 56 References Champine GA (1991) MIT Project Athena: a model for distributed campus computing. Digital Press, Massachusetts, USA Gettys J, Scheifler RW (2002) Xlib - c language x interface: X consortium standard.

More information

CGS 2405 Advanced Programming with C++ Course Justification

CGS 2405 Advanced Programming with C++ Course Justification Course Justification This course is the second C++ computer programming course in the Computer Science Associate in Arts degree program. This course is required for an Associate in Arts Computer Science

More information

Contents. Table of Contents. Table of Contents... iii Preface... xvii. Getting Started iii

Contents. Table of Contents. Table of Contents... iii Preface... xvii. Getting Started iii Contents Discovering the Possibilities... iii Preface... xvii Preface to the First Edition xvii Preface to the Second Edition xviii Getting Started... 1 Chapter Overview 1 Philosophy Behind this Book 1

More information

Motivation was to facilitate development of systems software, especially OS development.

Motivation was to facilitate development of systems software, especially OS development. A History Lesson C Basics 1 Development of language by Dennis Ritchie at Bell Labs culminated in the C language in 1972. Motivation was to facilitate development of systems software, especially OS development.

More information

Language Reference Manual simplicity

Language Reference Manual simplicity Language Reference Manual simplicity Course: COMS S4115 Professor: Dr. Stephen Edwards TA: Graham Gobieski Date: July 20, 2016 Group members Rui Gu rg2970 Adam Hadar anh2130 Zachary Moffitt znm2104 Suzanna

More information

Goals of C "" The Goals of C (cont.) "" Goals of this Lecture"" The Design of C: A Rational Reconstruction"

Goals of C  The Goals of C (cont.)  Goals of this Lecture The Design of C: A Rational Reconstruction Goals of this Lecture The Design of C: A Rational Reconstruction Help you learn about: The decisions that were available to the designers of C The decisions that were made by the designers of C Why? Learning

More information

Altering the Control Flow

Altering the Control Flow Altering the Control Flow Up to Now: two mechanisms for changing control flow: Jumps and branches Call and return using the stack discipline. Both react to changes in program state. Insufficient for a

More information

Index. object lifetimes, and ownership, use after change by an alias errors, use after drop errors, BTreeMap, 309

Index. object lifetimes, and ownership, use after change by an alias errors, use after drop errors, BTreeMap, 309 A Arithmetic operation floating-point arithmetic, 11 12 integer numbers, 9 11 Arrays, 97 copying, 59 60 creation, 48 elements, 48 empty arrays and vectors, 57 58 executable program, 49 expressions, 48

More information

C Language Programming

C Language Programming Experiment 2 C Language Programming During the infancy years of microprocessor based systems, programs were developed using assemblers and fused into the EPROMs. There used to be no mechanism to find what

More information

Getting started with Java

Getting started with Java Getting started with Java Magic Lines public class MagicLines { public static void main(string[] args) { } } Comments Comments are lines in your code that get ignored during execution. Good for leaving

More information

IBM. Enterprise Systems Architecture/ Extended Configuration Principles of Operation. z/vm. Version 6 Release 4 SC

IBM. Enterprise Systems Architecture/ Extended Configuration Principles of Operation. z/vm. Version 6 Release 4 SC z/vm IBM Enterprise Systems Architecture/ Extended Configuration Principles of Operation Version 6 Release 4 SC24-6192-01 Note: Before you use this information and the product it supports, read the information

More information

Managing Video Feeds. About Video Feeds CHAPTER

Managing Video Feeds. About Video Feeds CHAPTER CHAPTER 5 This chapter describes how to use the VSOM Video Feeds area to set up and manage camera groups and feeds, import camera configurations into VSOM using batch administration, and set up archives

More information

A Short Introduction to PostScript

A Short Introduction to PostScript A Short Introduction to PostScript Peter Fischer, ZITI, Uni Heidelberg 1 What is PostScript? Postscript is a language to describe graphic objects (& text) It is a vector format Shapes, characters,.. are

More information

A Short Introduction to PDF

A Short Introduction to PDF A Short Introduction to PDF Peter Fischer, ZITI, Uni Heidelberg 1 pdf vs. Postscript pdf describes graphics, text & document structure It uses vector graphics, very similar to postscript Some differences

More information

Informatique Graphique. Traitement de l'information et automatisation. Traitement de l'information et automatisation

Informatique Graphique. Traitement de l'information et automatisation. Traitement de l'information et automatisation Un programme mystérieux Informatique Graphique Professeur: Victor Ostromoukhov Page 1 Page 2 Un programme mystérieux Traitement de l'information et automatisation Page 3 Page 4 Traitement de l'information

More information

Postscript Control Flow

Postscript Control Flow Postscript Control Flow CSE 413, Autumn 2005 Programming Languages http://www.cs.washington.edu/education/courses/413/05au/ Variables Postscript uses dictionaries to associate a name with an object value»

More information

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23. Subject code - CCP01 Chapt Chapter 1 INTRODUCTION TO C 1. A group of software developed for certain purpose are referred as ---- a. Program b. Variable c. Software d. Data 2. Software is classified into

More information

CS 4240: Compilers and Interpreters Project Phase 1: Scanner and Parser Due Date: October 4 th 2015 (11:59 pm) (via T-square)

CS 4240: Compilers and Interpreters Project Phase 1: Scanner and Parser Due Date: October 4 th 2015 (11:59 pm) (via T-square) CS 4240: Compilers and Interpreters Project Phase 1: Scanner and Parser Due Date: October 4 th 2015 (11:59 pm) (via T-square) Introduction This semester, through a project split into 3 phases, we are going

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

PostScript: An Overview

PostScript: An Overview University of Waterloo July 11, 2016 1 History and Introduction 2 3 4 Before Adobe History and Introduction In 1976, John Warnock worked on a page description language for handling graphics being printed

More information

Color Separation Conventions for PostScript Language Programs

Color Separation Conventions for PostScript Language Programs Color Separation Conventions for PostScript Language Programs Adobe Developer Support Technical Note #5044 24 May 1996 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose,

More information

CS Programming In C

CS Programming In C CS 24000 - Programming In C Week 16: Review Zhiyuan Li Department of Computer Science Purdue University, USA This has been quite a journey Congratulation to all students who have worked hard in honest

More information

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING B.E SECOND SEMESTER CS 6202 PROGRAMMING AND DATA STRUCTURES I TWO MARKS UNIT I- 2 MARKS

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING B.E SECOND SEMESTER CS 6202 PROGRAMMING AND DATA STRUCTURES I TWO MARKS UNIT I- 2 MARKS DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING B.E SECOND SEMESTER CS 6202 PROGRAMMING AND DATA STRUCTURES I TWO MARKS UNIT I- 2 MARKS 1. Define global declaration? The variables that are used in more

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Timing Techniques. Adobe Developer Support. Technical Note # March Adobe Systems Incorporated

Timing Techniques. Adobe Developer Support. Technical Note # March Adobe Systems Incorporated Timing Techniques Adobe Developer Support Technical Note #5120 31 March 1992 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose, CA 95110 http://partners.adobe.com/ PN LPS5120

More information

Static Code Analysis - CERT C Secure Code Checking

Static Code Analysis - CERT C Secure Code Checking Static Code Analysis - CERT C Secure Code Checking Frozen Content Modified by on 6-Nov-2013 Related Videos CERT Code Checking The high-level C code written for an embedded software project can sometimes

More information

EW The Source Browser might fail to start data collection properly in large projects until the Source Browser window is opened manually.

EW The Source Browser might fail to start data collection properly in large projects until the Source Browser window is opened manually. EW 25462 The Source Browser might fail to start data collection properly in large projects until the Source Browser window is opened manually. EW 25460 Some objects of a struct/union type defined with

More information

Programming in C++ 5. Integral data types

Programming in C++ 5. Integral data types Programming in C++ 5. Integral data types! Introduction! Type int! Integer multiplication & division! Increment & decrement operators! Associativity & precedence of operators! Some common operators! Long

More information

CS401 - Computer Architecture and Assembly Language Programming Glossary By

CS401 - Computer Architecture and Assembly Language Programming Glossary By CS401 - Computer Architecture and Assembly Language Programming Glossary By absolute address : A virtual (not physical) address within the process address space that is computed as an absolute number.

More information

Exceptional Control Flow Part I

Exceptional Control Flow Part I Exceptional Control Flow Part I Today! Exceptions! Process context switches! Creating and destroying processes Next time! Signals, non-local jumps, Fabián E. Bustamante, 2007 Control flow! Computers do

More information

Control Flow. Systemprogrammering 2007 Föreläsning 2 Exceptional Control Flow Part I. Exceptional Control Flow. Altering the Control Flow

Control Flow. Systemprogrammering 2007 Föreläsning 2 Exceptional Control Flow Part I. Exceptional Control Flow. Altering the Control Flow Systemprogrammering 2007 Föreläsning 2 Exceptional Control Flow Part I Topics Exceptions Process context switches Creating and destroying processes Control Flow Computers do Only One Thing From startup

More information

Intel Architecture Software Developer s Manual

Intel Architecture Software Developer s Manual Intel Architecture Software Developer s Manual Volume 1: Basic Architecture NOTE: The Intel Architecture Software Developer s Manual consists of three books: Basic Architecture, Order Number 243190; Instruction

More information

Semantic actions for expressions

Semantic actions for expressions Semantic actions for expressions Semantic actions Semantic actions are routines called as productions (or parts of productions) are recognized Actions work together to build up intermediate representations

More information

Microprocessors (A) DOS Services

Microprocessors (A) DOS Services 1 Services 2 System Calls Operating System services: Disk and file system management Screen display and printing Keyboard entry Other I/O management Date and time Program run and terminate Command arguments

More information

The Acrobat Exchange. In This Issue

The Acrobat Exchange. In This Issue In This Issue The Acrobat Exchange Plug-In API Volume 3, Number 9 p. 1 The Acrobat Exchange Plug-In API p. 2 How to Reach Us p. 5 Questions and Answers Version 2.0 of the Adobe Acrobat products are here!

More information

UIL Diagnostic Messages

UIL Diagnostic Messages UIL Diagnostic Messages This appendix lists the diagnostic messages produced by the UIL compiler. The severity, a description of the message, and a suggestion for correcting the problem are listed for

More information

Emulation of the setstrokeadjust Operator

Emulation of the setstrokeadjust Operator Emulation of the setstrokeadjust Operator Adobe Developer Support Technical Note #5111 31 March 1992 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose, CA 95110 http://partners.adobe.com/

More information

RM0327 Reference manual

RM0327 Reference manual Reference manual Multi-Target Trace API version 1.0 Overview Multi-Target Trace (MTT) is an application instrumentation library that provides a consistent way to embed instrumentation into a software application,

More information

On 17 June 2006, the editor provided the following list via an to the convener:

On 17 June 2006, the editor provided the following list via an  to the convener: ISO/IEC JTC 1/SC 22/WG 9 N 471 List of AIs Approved per Resolution 50-8 James W. Moore, Convener 23 June 2006 Resolution 50-8 reads as follows: "Noting WG9's approval of the amendment to ISO/IEC 8652 and

More information

Arithmetic Operators. Portability: Printing Numbers

Arithmetic Operators. Portability: Printing Numbers Arithmetic Operators Normal binary arithmetic operators: + - * / Modulus or remainder operator: % x%y is the remainder when x is divided by y well defined only when x > 0 and y > 0 Unary operators: - +

More information

Inter-Process Communication and Synchronization of Processes, Threads and Tasks: Lesson-1: PROCESS

Inter-Process Communication and Synchronization of Processes, Threads and Tasks: Lesson-1: PROCESS Inter-Process Communication and Synchronization of Processes, Threads and Tasks: Lesson-1: PROCESS 1 Process Concepts 2 Process A process consists of executable program (codes), state of which is controlled

More information

KLiC C Programming. (KLiC Certificate in C Programming)

KLiC C Programming. (KLiC Certificate in C Programming) KLiC C Programming (KLiC Certificate in C Programming) Turbo C Skills: The C Character Set, Constants, Variables and Keywords, Types of C Constants, Types of C Variables, C Keywords, Receiving Input, Integer

More information

Linux Signals and Daemons

Linux Signals and Daemons Linux and Daemons Alessandro Barenghi Dipartimento di Elettronica, Informazione e Bioingegneria Politecnico di Milano alessandro.barenghi - at - polimi.it April 17, 2015 Recap By now, you should be familiar

More information

Supporting Level 2 Functionality

Supporting Level 2 Functionality Supporting Level 2 Functionality Adobe Developer Support Technical Note #5110 31 March 1992 Adobe Systems Incorporated Adobe Developer Technologies 345 Park Avenue San Jose, CA 95110 http://partners.adobe.com/

More information

UNIX Processes. by Armin R. Mikler. 1: Introduction

UNIX Processes. by Armin R. Mikler. 1: Introduction UNIX Processes by Armin R. Mikler Overview The UNIX Process What is a Process Representing a process States of a process Creating and managing processes fork() wait() getpid() exit() etc. Files in UNIX

More information

EDIABAS BEST/2 LANGUAGE DESCRIPTION. VERSION 6b. Electronic Diagnostic Basic System EDIABAS - BEST/2 LANGUAGE DESCRIPTION

EDIABAS BEST/2 LANGUAGE DESCRIPTION. VERSION 6b. Electronic Diagnostic Basic System EDIABAS - BEST/2 LANGUAGE DESCRIPTION EDIABAS Electronic Diagnostic Basic System BEST/2 LANGUAGE DESCRIPTION VERSION 6b Copyright BMW AG, created by Softing AG BEST2SPC.DOC CONTENTS CONTENTS...2 1. INTRODUCTION TO BEST/2...5 2. TEXT CONVENTIONS...6

More information

Run time environment of a MIPS program

Run time environment of a MIPS program Run time environment of a MIPS program Stack pointer Frame pointer Temporary local variables Return address Saved argument registers beyond a0-a3 Low address Growth of stack High address A translation

More information

CS 261 Fall C Introduction. Variables, Memory Model, Pointers, and Debugging. Mike Lam, Professor

CS 261 Fall C Introduction. Variables, Memory Model, Pointers, and Debugging. Mike Lam, Professor CS 261 Fall 2017 Mike Lam, Professor C Introduction Variables, Memory Model, Pointers, and Debugging The C Language Systems language originally developed for Unix Imperative, compiled language with static

More information

SISTEMI EMBEDDED. The C Pre-processor Fixed-size integer types Bit Manipulation. Federico Baronti Last version:

SISTEMI EMBEDDED. The C Pre-processor Fixed-size integer types Bit Manipulation. Federico Baronti Last version: SISTEMI EMBEDDED The C Pre-processor Fixed-size integer types Bit Manipulation Federico Baronti Last version: 20160302 The C PreProcessor CPP (1) CPP is a program called by the compiler that processes

More information

Examples of Code Roaches. First Draft List Cem Kaner September 11, 2005

Examples of Code Roaches. First Draft List Cem Kaner September 11, 2005 Examples of Code Roaches First Draft List Cem Kaner September 11, 2005 Why a Potential-Bug List? Given a potential error, you can develop a method to test for it Foundation for Code inspections Glass box

More information

Templates what and why? Beware copying classes! Templates. A simple example:

Templates what and why? Beware copying classes! Templates. A simple example: Beware copying classes! Templates what and why? class A { private: int data1,data2[5]; float fdata; public: // methods etc. } A a1,a2; //some work initializes a1... a2=a1; //will copy all data of a2 into

More information

Continued from previous lecture

Continued from previous lecture The Design of C: A Rational Reconstruction: Part 2 Jennifer Rexford Continued from previous lecture 2 Agenda Data Types Statements What kinds of operators should C have? Should handle typical operations

More information

MPI: A Message-Passing Interface Standard

MPI: A Message-Passing Interface Standard MPI: A Message-Passing Interface Standard Version 2.1 Message Passing Interface Forum June 23, 2008 Contents Acknowledgments xvl1 1 Introduction to MPI 1 1.1 Overview and Goals 1 1.2 Background of MPI-1.0

More information

Outline. Performing Computations. Outline (cont) Expressions in C. Some Expression Formats. Types for Operands

Outline. Performing Computations. Outline (cont) Expressions in C. Some Expression Formats. Types for Operands Performing Computations C provides operators that can be applied to calculate expressions: tax is 8.5% of the total sale expression: tax = 0.085 * totalsale Need to specify what operations are legal, how

More information

Xm Data Types. XmDirection. XmFontList. XmParseMapping. XmParseTable. XmRenderTable. XmString. XmStringDirection. XmStringTable. XmTab.

Xm Data Types. XmDirection. XmFontList. XmParseMapping. XmParseTable. XmRenderTable. XmString. XmStringDirection. XmStringTable. XmTab. Xm Data Types XmDirection XmFontList XmParseMapping XmParseTable XmRenderTable XmString XmStringDirection XmStringTable XmTab XmTabList XmTextPosition Motif Programmer s Reference 1 XmDirection (library

More information

ESc101 : Fundamental of Computing

ESc101 : Fundamental of Computing ESc101 : Fundamental of Computing I Semester 2008-09 Lecture 9+10 Types Range of numeric types and literals (constants) in JAVA Expressions with values of mixed types 1 I : Range of numeric types and literals

More information

Computer Security. Robust and secure programming in C. Marius Minea. 12 October 2017

Computer Security. Robust and secure programming in C. Marius Minea. 12 October 2017 Computer Security Robust and secure programming in C Marius Minea marius@cs.upt.ro 12 October 2017 In this lecture Write correct code minimizing risks with proper error handling avoiding security pitfalls

More information

F1 A Java program. Ch 1 in PPIJ. Introduction to the course. The computer and its workings The algorithm concept

F1 A Java program. Ch 1 in PPIJ. Introduction to the course. The computer and its workings The algorithm concept F1 A Java program Ch 1 in PPIJ Introduction to the course The computer and its workings The algorithm concept The structure of a Java program Classes and methods Variables Program statements Comments Naming

More information

Exceptional Control Flow Part I Oct. 17, 2002

Exceptional Control Flow Part I Oct. 17, 2002 15-213 The course that gives CMU its Zip! Exceptional Control Flow Part I Oct. 17, 2002 Topics Exceptions Process context switches Creating and destroying processes class16.ppt Control Flow Computers do

More information

Layers in a UNIX System. Create a new process. Processes in UNIX. fildescriptors streams pipe(2) labinstructions

Layers in a UNIX System. Create a new process. Processes in UNIX. fildescriptors streams pipe(2) labinstructions Process Management Operating Systems Spring 2005 Layers in a UNIX System interface Library interface System call interface Lab Assistant Magnus Johansson magnusj@it.uu.se room 1442 postbox 54 (4th floor,

More information

CS /534 Compiler Construction University of Massachusetts Lowell

CS /534 Compiler Construction University of Massachusetts Lowell CS 91.406/534 Compiler Construction University of Massachusetts Lowell Professor Li Xu Fall 2004 Lab Project 2: Parser and Type Checker for NOTHING Due: Sunday, November 14, 2004, 11:59 PM 1 Introduction

More information

CS246 Spring14 Programming Paradigm Files, Pipes and Redirection

CS246 Spring14 Programming Paradigm Files, Pipes and Redirection 1 Files 1.1 File functions Opening Files : The function fopen opens a file and returns a FILE pointer. FILE *fopen( const char * filename, const char * mode ); The allowed modes for fopen are as follows

More information

Topic 6: A Quick Intro To C. Reading. "goto Considered Harmful" History

Topic 6: A Quick Intro To C. Reading. goto Considered Harmful History Topic 6: A Quick Intro To C Reading Assumption: All of you know basic Java. Much of C syntax is the same. Also: Some of you have used C or C++. Goal for this topic: you can write & run a simple C program

More information

Programming Languages Third Edition. Chapter 9 Control I Expressions and Statements

Programming Languages Third Edition. Chapter 9 Control I Expressions and Statements Programming Languages Third Edition Chapter 9 Control I Expressions and Statements Objectives Understand expressions Understand conditional statements and guards Understand loops and variation on WHILE

More information

C++ basics Getting started with, and Data Types.

C++ basics Getting started with, and Data Types. C++ basics Getting started with, and Data Types pm_jat@daiict.ac.in Recap Last Lecture We talked about Variables - Variables, their binding to type, storage etc., Categorization based on storage binding

More information

UNIT IV-2. The I/O library functions can be classified into two broad categories:

UNIT IV-2. The I/O library functions can be classified into two broad categories: UNIT IV-2 6.0 INTRODUCTION Reading, processing and writing of data are the three essential functions of a computer program. Most programs take some data as input and display the processed data, often known

More information

CSE P 501 Compilers. Java Implementation JVMs, JITs &c Hal Perkins Winter /11/ Hal Perkins & UW CSE V-1

CSE P 501 Compilers. Java Implementation JVMs, JITs &c Hal Perkins Winter /11/ Hal Perkins & UW CSE V-1 CSE P 501 Compilers Java Implementation JVMs, JITs &c Hal Perkins Winter 2008 3/11/2008 2002-08 Hal Perkins & UW CSE V-1 Agenda Java virtual machine architecture.class files Class loading Execution engines

More information

But first, encode deck of cards. Integer Representation. Two possible representations. Two better representations WELLESLEY CS 240 9/8/15

But first, encode deck of cards. Integer Representation. Two possible representations. Two better representations WELLESLEY CS 240 9/8/15 Integer Representation Representation of integers: unsigned and signed Sign extension Arithmetic and shifting Casting But first, encode deck of cards. cards in suits How do we encode suits, face cards?

More information

PRESENTED BY: SANTOSH SANGUMANI & SHARAN NARANG

PRESENTED BY: SANTOSH SANGUMANI & SHARAN NARANG PRESENTED BY: SANTOSH SANGUMANI & SHARAN NARANG Table of contents Introduction Binary Disassembly Return Address Defense Prototype Implementation Experimental Results Conclusion Buffer Over2low Attacks

More information

Operators. Java operators are classified into three categories:

Operators. Java operators are classified into three categories: Operators Operators are symbols that perform arithmetic and logical operations on operands and provide a meaningful result. Operands are data values (variables or constants) which are involved in operations.

More information

Introduction. Problem Solving on Computer. Data Structures (collection of data and relationships) Algorithms

Introduction. Problem Solving on Computer. Data Structures (collection of data and relationships) Algorithms Introduction Problem Solving on Computer Data Structures (collection of data and relationships) Algorithms 1 Objective of Data Structures Two Goals: 1) Identify and develop useful high-level data types

More information

Java Classes: Math, Integer A C S L E C T U R E 8

Java Classes: Math, Integer A C S L E C T U R E 8 Java Classes: Math, Integer A C S - 1903 L E C T U R E 8 Math class Math class is a utility class You cannot create an instance of Math All references to constants and methods will use the prefix Math.

More information