EETimes

Embedded Systems December 2000 Vol13_13

Issue link: http://dc.ee.ubm-us.com/i/71850

Contents of this Issue

Navigation

Page 160 of 197

fi rst-dime nsion SUbSCl"ipts are used, - 25 and -24, since these will adjust arr back into the . allocated pace. If you want to generate some seri- ous piles of da nd.'uCf, then try a three- dime nsional array of a large struct with odd starting SUbSCl"ip ts. At some point you just trust that the recursive routines are putting stuff whe re is should be. The acid test is to fill the enti re array with known data and then read it back, comparing with stored values and making sure th at no mem- ory accesses were outside u1e allocated space. Closing observations These routines were designed and used in a 32-bit environment. That is not to say that they can 't be ported to other environments. However, 8- or 16-bi t machines might seem to have more restricti ve envi ronments with regards to pointer usage than the 32- bit environments. Machines with 64 bi ts are something else. I'm sure that a po rt to these would not be difficult; however, such applications are sti ll rare. If you have pon ed this code to a new machine/ compiler envi ronment, I would take a few ste ps to ensure valid resul ts at the outset. The first would be to run all u1e test sui te examples and veri fy the expected results. The sec- ond would be to run thro ugh every dimensional extent from low to high and write/ read/ verify the data. The u1 ird ste p would be to ensure address closure, that is, print out the high and low addresses of the allocated memory and test that all pointers to pointe rs and poin ters to data point inside these limits. Last of all is the matter of opti m iza- tion. I have used mis code with both debug and optimized compiles. I have not done any detailed analysis of the Can CMX Really Put TCP/IP On My Little Ole. Chip? Yes, Ma'am, CMX has been doing amazing things with RTOSes and TCP/IP stacks for many years now. If you haven't visited us in a while, new ERTFS - EMBEDDED REAL TIME FILE SYSTEM Since 1987 in Hundreds of Applications Worldwide Selected as the File System for Several Major Embedded Operating Systems DOS/Win95/FAT32 Compatible Simple OS and CPU Porting Layer Contiguous File Support Realtime Extensions Includes Support for IDE, Floppy, ROM/RAM Disk, PCMClA, Compact Flash CDROM Support Available 100% 'C' Source CodeĀ· Royalty Free 680 Worcester Road Framingham MA 01702 Ph: (508) 872-7675 Fax: (508) 620-6828 email: cmx@cmx.com WWW: www.cmx.com Only $450000 Visit Our Web Site at: ~ '4 J'Oftw'ilo",z, 'Ob,z,(\<.\ed SY.S'I' C'>~

Articles in this issue

Archives of this issue

view archives of EETimes - Embedded Systems December 2000 Vol13_13