🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.dsp
Article #2329

Re: C code .vs. Assembly code for Microcontrollers/DSPs ?

#2329
From: Hans Steffani
Date: Tue, 26 Mar 1996 20:51
19 lines
846 bytes
Steve Rencontre <Steve@dstrip.demon.co.uk> writes:

>Oh yes it can!

>	...	
>	int var1, var2;
>	int *var1p = &var1;
>	var1p[-1] = 0;
>	...

Post this to comp.lang.c[.moderated] and you will be told that this
leads to undefined behavior and something like that. 

h.f.s.
--
Hans Friedrich Steffani
Institut fuer Elektrische Maschinen und Antriebe
TU Chemnitz-Zwickau
e-mail: hans.steffani@e-technik.tu-chemnitz.de
Technical Details
Message-ID: <4j9lfh$o2l@narses.hrz.tu-chemnitz.de>
Path: arc1-ca.pugleaf.net!news.tu-chemnitz.de!news
References: <620174950wnr@dstrip.demon.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.tu-chemnitz.de!news
From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
Newsgroups: comp.dsp,comp.lang.c
Subject: Re: C code .vs. Assembly code for Microcontrollers/DSPs ?
Date: 26 Mar 96 20:51:26 GMT
Organization: University of Technology Chemnitz, FRG
Message-ID: <4j9lfh$o2l@narses.hrz.tu-chemnitz.de>
References: <620174950wnr@dstrip.demon.co.uk>
NNTP-Posting-Host: sisyphus.hrz.tu-chemnitz.de