Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

One can't proceed from the informal to the formal by formal means.


devel / comp.lang.c / here

SubjectAuthor
* herefir
`* Re: herefir
 `- Re: herefir

1
here

<6eeea878-5cb3-4b39-ad66-a089889c2605n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18361&group=comp.lang.c#18361

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5492:: with SMTP id h18mr27848894qtq.152.1632218358515;
Tue, 21 Sep 2021 02:59:18 -0700 (PDT)
X-Received: by 2002:a0c:b44f:: with SMTP id e15mr30310527qvf.32.1632218358326;
Tue, 21 Sep 2021 02:59:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 21 Sep 2021 02:59:18 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.23; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.23
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6eeea878-5cb3-4b39-ad66-a089889c2605n@googlegroups.com>
Subject: here
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 21 Sep 2021 09:59:18 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 32
 by: fir - Tue, 21 Sep 2021 09:59 UTC

i was not doing c long time but its autumn again and i thinkd,:maybe i do some

i put in some abstract thought that "jumps" in program allows for branching (if conditional) and loops but do they allow the function call?

this led me immediately to note maybe somekind like hole in c (or
something like that) : to make function call one would just need to
store current program pointer (so called IP (instruction pointer) basic
fundamental thing in old 6510 assembly when i was starting to coding)

c has a type of void* to store that ipo but has no way of reading current
state of it... this could be made (become realized (? not sure this english phrase, "byc zrealizowane") by some construct/keyword like 'here'

for example

void* where1;
void* where2;
void* where3;

void foo()
{ where1 = here;
b();
where2 = here;
c();
where3 = here;

goto where2;

}

i not thinked on eventuall usability of this but the lack of this here mechanism seem to be a logical hole for me...usability probably could be found

Re: here

<e5aac796-f153-4bf4-a16e-e72c290a996cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18362&group=comp.lang.c#18362

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a0c:aa54:: with SMTP id e20mr6125019qvb.59.1632219354331;
Tue, 21 Sep 2021 03:15:54 -0700 (PDT)
X-Received: by 2002:a37:a64b:: with SMTP id p72mr5096120qke.459.1632219354167;
Tue, 21 Sep 2021 03:15:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 21 Sep 2021 03:15:53 -0700 (PDT)
In-Reply-To: <6eeea878-5cb3-4b39-ad66-a089889c2605n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.23; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.23
References: <6eeea878-5cb3-4b39-ad66-a089889c2605n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e5aac796-f153-4bf4-a16e-e72c290a996cn@googlegroups.com>
Subject: Re: here
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 21 Sep 2021 10:15:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 58
 by: fir - Tue, 21 Sep 2021 10:15 UTC

wtorek, 21 września 2021 o 11:59:24 UTC+2 fir napisał(a):
> i was not doing c long time but its autumn again and i thinkd,:maybe i do some
>
> i put in some abstract thought that "jumps" in program allows for branching (if conditional) and loops but do they allow the function call?
>
> this led me immediately to note maybe somekind like hole in c (or
> something like that) : to make function call one would just need to
> store current program pointer (so called IP (instruction pointer) basic
> fundamental thing in old 6510 assembly when i was starting to coding)
>
> c has a type of void* to store that ipo but has no way of reading current
> state of it... this could be made (become realized (? not sure this english phrase, "byc zrealizowane") by some construct/keyword like 'here'
>
> for example
>
> void* where1;
> void* where2;
> void* where3;
>
> void foo()
> {
> where1 = here;
> b();
> where2 = here;
> c();
> where3 = here;
>
> goto where2;
>
> }
>

i know some coud say c has labels and you may turn where1=here; intu just where1: (and goito where1;)
which also would spare of sorta idiotic re-storing of where1 to here which is always the same value (in typical environment) but in case i was thinking initially i mean when someone would like to make function calls with jumps

ret_addr = here+(l2-l1);

l1:
goto foo;
l2:

///in foo
/// goto ret_addr

it makes some complications but at least allows this ...and this hole (lack of iot) in c may not be big practically
but theoretically is kinda big hole probably

Re: here

<4991f6d7-e983-498e-b3c3-cb16c65cd115n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18363&group=comp.lang.c#18363

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:430c:: with SMTP id u12mr25632332qko.439.1632219830103;
Tue, 21 Sep 2021 03:23:50 -0700 (PDT)
X-Received: by 2002:ae9:e811:: with SMTP id a17mr8243560qkg.172.1632219829981;
Tue, 21 Sep 2021 03:23:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 21 Sep 2021 03:23:49 -0700 (PDT)
In-Reply-To: <e5aac796-f153-4bf4-a16e-e72c290a996cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.23; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.23
References: <6eeea878-5cb3-4b39-ad66-a089889c2605n@googlegroups.com> <e5aac796-f153-4bf4-a16e-e72c290a996cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4991f6d7-e983-498e-b3c3-cb16c65cd115n@googlegroups.com>
Subject: Re: here
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 21 Sep 2021 10:23:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 37
 by: fir - Tue, 21 Sep 2021 10:23 UTC

wtorek, 21 września 2021 o 12:16:01 UTC+2 fir napisał(a):
> wtorek, 21 września 2021 o 11:59:24 UTC+2 fir napisał(a):
> >
> i know some coud say c has labels and you may turn where1=here; intu just where1: (and goito where1;)
> which also would spare of sorta idiotic re-storing of where1 to here which is always the same value (in typical environment) but in case i was thinking initially i mean when someone would like to make function calls with jumps
>
> ret_addr = here+(l2-l1);
>
> l1:
> goto foo;
> l2:
>

some could point that

ret_addr = l2;
goto foo;
l2:

would suffuice, this is also true but still teh lack of here is some hole of completion

it may also be notet that goto with argument passing could be used

goto foo(l2);
l2:

and this may be seen as 'deconstruction' of function call on elements which is also good imo

> ///in foo
> /// goto ret_addr
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor