Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
both sements have different attributes ..Usually one is code is READ ONLY .So you want to protect the code from getting corrupted or modified ! .Otherwise this give raise to spaguetti CODE..you will never know where is the begining or end .
So if thomething goes bad you can loose your data ,though if properly backed up there is no reason.But the code is the intelligent part of the machine You want to protected from getting corrupted or lost ,or modified by somebody else to gain control of your system ...DATA is read and write, so they have to be in separate memories spaces,even if they are in the same memory chip, or they can also be in separate memory midiums .. SRAM,EPROM etc and have violation check circuitry.
the data and code segment are seperate because the code segment will not change but the data segemnt can change its values during run time. so to protect the code we store them seperately.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.