comp.lang.ada
 help / color / mirror / Atom feed
* EXCEPTION_ACCESS_VIOLATION and others stories
@ 2001-03-12 18:56 Etienne Baudin
  0 siblings, 0 replies; 3+ messages in thread
From: Etienne Baudin @ 2001-03-12 18:56 UTC (permalink / raw)


EXCEPTION_ACCESS_VIOLATION
    Appears when I compile with
<<gnatmake -gnatpn -O2 -mpentium -funroll-loops -fomit-frame-pointer %1
-largs -s e:\gllib\opengl32.lib e:\gllib\glu32.lib e:\gllib\libglut32.a>>

with
<<gnatmake %1
-largs -s e:\gllib\opengl32.lib e:\gllib\glu32.lib e:\gllib\libglut32.a>>
there isn't problem

else : is "tab(1..3):=anothertab(1..3)" faster than
tab(1):=anothertab(1)
tab(2):=anothertab(2)
tab(3):=anothertab(3) or is it the same execution time ?

Then, does anyone know this compilar message and could tell me what is wrong
?
<<access-to-variable designates constant>>

Thanks
Etienne Baudin






^ permalink raw reply	[flat|nested] 3+ messages in thread

* EXCEPTION_ACCESS_VIOLATION and others stories
@ 2001-03-12 19:38 Etienne Baudin
  2001-03-13 18:15 ` Stephen Leake
  0 siblings, 1 reply; 3+ messages in thread
From: Etienne Baudin @ 2001-03-12 19:38 UTC (permalink / raw)


EXCEPTION_ACCESS_VIOLATION
    Appears when I compile with
<<gnatmake -gnatpn -O2 -mpentium -funroll-loops -fomit-frame-pointer %1
-largs -s e:\gllib\opengl32.lib e:\gllib\glu32.lib e:\gllib\libglut32.a>>

with
<<gnatmake %1
-largs -s e:\gllib\opengl32.lib e:\gllib\glu32.lib e:\gllib\libglut32.a>>
there isn't problem

else : is "tab(1..3):=anothertab(1..3)" faster than
tab(1):=anothertab(1)
tab(2):=anothertab(2)
tab(3):=anothertab(3) or is it the same execution time ?

Then, does anyone know this compilar message and could tell me what is wrong
?
<<access-to-variable designates constant>>

Thanks
Etienne Baudin





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: EXCEPTION_ACCESS_VIOLATION and others stories
  2001-03-12 19:38 EXCEPTION_ACCESS_VIOLATION and others stories Etienne Baudin
@ 2001-03-13 18:15 ` Stephen Leake
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Leake @ 2001-03-13 18:15 UTC (permalink / raw)


"Etienne Baudin" <etienne.baudin@wanadoo.fr> writes:

> EXCEPTION_ACCESS_VIOLATION
>     Appears when I compile with
> <<gnatmake -gnatpn -O2 -mpentium -funroll-loops -fomit-frame-pointer %1
> -largs -s e:\gllib\opengl32.lib e:\gllib\glu32.lib e:\gllib\libglut32.a>>
> 
> with
> <<gnatmake %1
> -largs -s e:\gllib\opengl32.lib e:\gllib\glu32.lib e:\gllib\libglut32.a>>
> there isn't problem

-fomit-frame-pointer is probably dangerous with GNAT; why are you
 specifying it?

> else : is "tab(1..3):=anothertab(1..3)" faster than
> tab(1):=anothertab(1) tab(2):=anothertab(2) tab(3):=anothertab(3) or
> is it the same execution time ?

Time it on your machine and your compiler and your set of options; no
other way to know.

> Then, does anyone know this compilar message and could tell me what
> is wrong ? <<access-to-variable designates constant>>

It means you have an object of an access-to-variable type that you are
trying to make point to a constant (probably an "in" parameter). This
is illegal, because later code could then try to change the constant
by assigning via the access object. If it is an "in" parameter, change
it to either an "in out" parameter or an "access" parameter, or
redefine the subprogram called to take an access-to-constant type.

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-03-13 18:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-12 19:38 EXCEPTION_ACCESS_VIOLATION and others stories Etienne Baudin
2001-03-13 18:15 ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2001-03-12 18:56 Etienne Baudin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox